Closed fabaff closed 3 years ago
The tests don't run:
$ pytest tests Test session starts (platform: linux, Python 3.9.2, pytest 6.0.2, pytest-sugar 0.9.3) benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /home/fab/Documents/repos/aqualogic plugins: asyncio-0.14.0, requests-mock-1.7.0, httpx-0.10.0, mock-3.3.1, benchmark-3.2.3, aresponses-2.0.0, forked-1.3.0, xdist-1.34.0, django-3.8.0, vcr-1.0.2, datafiles-2.0, pyfakefs-3.5.8, httpbin-1.0.0, sugar-0.9.3, aiohttp-0.3.0, cov-2.11.1, error-for-skips-2.0.2 collecting ... ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― TestAquaLogic.test_pool ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― self = <tests.test_core.TestAquaLogic object at 0x7f6ab4039c70> def test_pool(self): reader = FileIO('tests/data/pool_on.bin') > aq = AquaLogic(reader, None) E TypeError: __init__() takes 1 positional argument but 3 were given tests/test_core.py:16: TypeError tests/test_core.py ⨯ 50% █████ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― TestAquaLogic.test_spa ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― self = <tests.test_core.TestAquaLogic object at 0x7f6ab4039b20> def test_spa(self): reader = FileIO('tests/data/spa_on.bin') > aq = AquaLogic(reader, None) E TypeError: __init__() takes 1 positional argument but 3 were given tests/test_core.py:33: TypeError tests/test_core.py ⨯ 100% ██████████ ====================================================================================================== short test summary info ====================================================================================================== FAILED tests/test_core.py::TestAquaLogic::test_pool - TypeError: __init__() takes 1 positional argument but 3 were given FAILED tests/test_core.py::TestAquaLogic::test_spa - TypeError: __init__() takes 1 positional argument but 3 were given Results (0.14s): 2 failed - tests/test_core.py:14 TestAquaLogic.test_pool - tests/test_core.py:31 TestAquaLogic.test_spa
Clean venv with the latest commit.
venv
Fixed by 185fe25a86c82c497a55c78914b55ed39f5ca339
The tests don't run:
Clean
venv
with the latest commit.