Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Jan 10, 2024
1 parent 963a8b0 commit f3c4a86
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion catcli/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class NodeAny(NodeMixin): # type: ignore

def __init__(self, # type: ignore[no-untyped-def]
name=None,
size=None,
size=0,
parent=None,
children=None):
"""build generic node"""
Expand Down
2 changes: 1 addition & 1 deletion tests-ng/assets/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ clean_catalog "tests-ng/assets/github.catalog.json"
# native
python3 -m catcli.catcli ls -r -s -B --catalog=tests-ng/assets/github.catalog.json | \
sed -e 's/free:.*%/free:0.0%/g' \
-e 's/date:....-..-.. ..:..:../date:2023-03-09 16:20:59/g' \
-e 's/....-..-.. ..:..:../2023-03-09 16:20:59/g' \
-e 's#du:[^|]* |#du:0/0 |#g' > tests-ng/assets/github.catalog.native.txt

# csv
Expand Down
6 changes: 3 additions & 3 deletions tests-ng/assets/github.catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
"name": "github",
"size": 1662,
"total": 0,
"ts": 1704922075,
"ts": 1704923096,
"type": "storage"
},
{
"attr": {
"access": 1704922075,
"access": 1704923096,
"access_version": "0.9.6",
"created": 1704922075,
"created": 1704923096,
"created_version": "0.9.6"
},
"name": "meta",
Expand Down
10 changes: 5 additions & 5 deletions tests-ng/assets/github.catalog.native.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
top
└── storage: github [nbfiles:3|totsize:4865|free:0.0%|du:0/0|date:2023-03-09 16:20:59]
├── FUNDING.yml 17 2022-10-19 21:00:37 [md5:0c6407a84d412c514007313fb3bca4de]
├── codecov.yml 104 2024-01-03 23:25:10 [md5:4203204f75b43cd4bf032402beb3359d]
└── workflows 3082 2024-01-03 23:25:27 [nbfiles:2]
├── pypi-release.yml 691 2022-10-19 21:00:37 [md5:57699a7a6a03e20e864f220e19f8e197]
└── testing.yml 850 2024-01-04 22:26:09 [md5:691df1a4d2f254b5cd04c152e7c6ccaf]
├── FUNDING.yml 17 2023-03-09 16:20:59 [md5:0c6407a84d412c514007313fb3bca4de]
├── codecov.yml 104 2023-03-09 16:20:59 [md5:4203204f75b43cd4bf032402beb3359d]
└── workflows 3082 2023-03-09 16:20:59 [nbfiles:2]
├── pypi-release.yml 691 2023-03-09 16:20:59 [md5:57699a7a6a03e20e864f220e19f8e197]
└── testing.yml 850 2023-03-09 16:20:59 [md5:691df1a4d2f254b5cd04c152e7c6ccaf]
2 changes: 1 addition & 1 deletion tests-ng/compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ native="${tmpd}/native.txt"
${bin} -B ls -s -r --format=native --catalog="${catalog}" > "${native}"
mod="${tmpd}/native.mod.txt"
cat "${native}" | sed -e 's/free:.*%/free:0.0%/g' \
-e 's/date:....-..-.. ..:..:../date:2023-03-09 16:20:59/g' \
-e 's/....-..-.. ..:..:../2023-03-09 16:20:59/g' \
-e 's#du:[^|]* |#du:0/0 |#g' > "${mod}"
if command -v delta >/dev/null; then
delta -s "tests-ng/assets/github.catalog.native.txt" "${mod}"
Expand Down

0 comments on commit f3c4a86

Please sign in to comment.