mirror of https://github.com/deadc0de6/catcli
fix tests
parent
ddefc662db
commit
07d323f0e6
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# run me from the root of the package
|
||||
|
||||
source tests-ng/helper
|
||||
|
||||
|
||||
rm -f tests-ng/assets/github.catalog.json
|
||||
python3 -m catcli.catcli index -c github .github --catalog=tests-ng/assets/github.catalog.json
|
||||
|
||||
# edit catalog
|
||||
sed -i 's/"free": .*,/"free": 0,/g' "tests-ng/assets/github.catalog.json"
|
||||
sed -i 's/"total": .*,/"total": 0,/g' "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#du:[^|]* |#du:0/0 |#g' > tests-ng/assets/github.catalog.native.txt
|
||||
|
||||
# csv
|
||||
python3 -m catcli.catcli ls -r -s -B --catalog=tests-ng/assets/github.catalog.json --format=csv | \
|
||||
sed -e 's/"3","[^"]*","[^"]*",""/"3","0","0",""/g' | \
|
||||
sed 's/20..-..-.. ..:..:..//g' > tests-ng/assets/github.catalog.csv.txt
|
@ -1,5 +1,6 @@
|
||||
"github","storage","","1510","2023-03-09 16:20:59","","","2","0","0",""
|
||||
"workflows","dir","github/workflows","1493","2023-03-09 16:20:59","2023-03-09 16:20:44","","2","","",""
|
||||
"pypi-release.yml","file","github/workflows/pypi-release.yml","691","2023-03-09 16:20:59","2022-10-19 21:00:37","57699a7a6a03e20e864f220e19f8e197","","","",""
|
||||
"testing.yml","file","github/workflows/testing.yml","802","2023-03-09 16:20:59","2023-03-09 16:20:44","7144a119ef43adb634654522c12ec250","","","",""
|
||||
"FUNDING.yml","file","github/FUNDING.yml","17","2023-03-09 16:20:59","2022-10-19 21:00:37","0c6407a84d412c514007313fb3bca4de","","","",""
|
||||
"github","storage","","1642","","","","3","0","0",""
|
||||
"workflows","dir","github/workflows","1521","","","","2","","",""
|
||||
"pypi-release.yml","file","github/workflows/pypi-release.yml","691","","","57699a7a6a03e20e864f220e19f8e197","","","",""
|
||||
"testing.yml","file","github/workflows/testing.yml","830","","","93c53fc77c983b4686c8971aa25b6b18","","","",""
|
||||
"codecov.yml","file","github/codecov.yml","104","","","4203204f75b43cd4bf032402beb3359d","","","",""
|
||||
"FUNDING.yml","file","github/FUNDING.yml","17","","","0c6407a84d412c514007313fb3bca4de","","","",""
|
||||
|
Loading…
Reference in New Issue