feat: Add some inital tests
Some checks failed
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 46s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 49s
Test Python Compatibility / Python-Compatibility (3.10) (push) Failing after 1m38s
Test Python Compatibility / Python-Compatibility (3.13) (push) Successful in 1m51s
Test Python Compatibility / Python-Compatibility (3.6) (push) Failing after 22s
Test Python Compatibility / Python-Compatibility (3.7) (push) Failing after 1m16s
Test Python Compatibility / Python-Compatibility (3.8) (push) Failing after 1m29s
Test Python Compatibility / Python-Compatibility (3.9) (push) Failing after 1m28s

This commit is contained in:
2025-09-02 15:20:31 +10:00
parent e0f24267f5
commit 56eabfc1fc
2 changed files with 7 additions and 7 deletions

View File

@@ -1906,3 +1906,9 @@ if __name__ == '__main__':
app.run(debug=True)
else:
app.run()
def tests():
assert blocks_to_time(6) == "1 hrs"
assert blocks_to_time(3) == "30 mins"
assert blocks_to_time(1) == "10 mins"
assert blocks_to_time(10) == "1 hrs 40 mins"