Anthias
Anthias copied to clipboard
Fix failing tests in `tests/updates_test.py`.
Checklist
- [ ]
test_if_sha_file_is_empty__check_update__should_return_true
(updates_test.UpdateTest
) - [ ]
test_if_sha_file_is_new__check_update__should_return_false
(updates_test.UpdateTest
) - [ ]
test_if_sha_file_not_equals_to_branch_hash__is_up_to_date__should_return_false
(updates_test.UpdateTest
)
Overview of the Issue
test_if_sha_file_is_empty__check_update__should_return_true (updates_test.UpdateTest) ... ERROR
test_if_sha_file_is_new__check_update__should_return_false (updates_test.UpdateTest) ... ERROR
test_if_sha_file_not_equals_to_branch_hash__is_up_to_date__should_return_false (updates_test.UpdateTest) ... FAIL
test_if_sha_file_not_exists__is_up_to_date__should_return_false (updates_test.UpdateTest) ... ok
...
Ran 4 tests in 0.020s
FAILED (errors=2, failures=1)
Reproduction Steps
First Time Setup
docker-compose -f docker-compose.dev.yml build
docker-compose -f docker-compose.dev.yml up -d
docker-compose -f docker-compose.dev.yml exec srly-ose-test bash bin/prepare_test_environment.sh -s
Running the Tests
docker-compose -f docker-compose.dev.yml exec srly-ose-test nosetests -v -a 'fixme' tests/updates_test.py
Environment
- WSL 2 (Ubuntu 22.04, x86, 64-bit)
- Docker Desktop for Windows (accessible via WSL 2)