feat: Add some inital tests

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

@@ -33,9 +33,3 @@ jobs:
run: |
echo "Testing with Python ${{ matrix.python-version }}"
python -m pytest main.py
- name: Check compatibility
run: |
# Add any additional compatibility checks if needed
python --version
python -c "import sys; print(f'Python {sys.version_info.major}.{sys.version_info.minor} compatibility test passed')"

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"