Skip to content

Commit

Permalink
Fix incorrect PYTHONPATH during tests (#38)
Browse files Browse the repository at this point in the history
Fixes running tests:
  ImportError while loading conftest '/home/dw/projects/modbus/modbus-proxy/tests/conftest.py'.
  tests/conftest.py:5: in <module>
      from modbus_proxy import ModBus
  E   ModuleNotFoundError: No module named 'modbus_proxy'
  py312: exit 4 (0.52 seconds) /home/dw/projects/modbus/modbus-proxy> pytest --basetemp=/home/dw/projects/modbus/modbus-proxy/.tox/py312/tmp pid=95087
    py312: FAIL code 4 (0.53 seconds)
    evaluation failed :( (0.65 seconds)

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
  • Loading branch information
dwrobel authored Sep 4, 2024
1 parent f94dd66 commit 8579839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python =

[testenv]
setenv =
PYTHONPATH = {toxinidir}
PYTHONPATH = {toxinidir}/src
deps =
-r{toxinidir}/requirements_dev.txt
commands =
Expand Down

0 comments on commit 8579839

Please sign in to comment.