Skip to content

test_cli_decode: use the imports like the other tests

Benjamin Tissoires requested to merge bentiss/hid-tools:master into master

Got the following on my local machine:

$> sudo pytest-3
=============================== test session starts ===============================
platform linux -- Python 3.7.1, pytest-3.6.4, py-1.5.4, pluggy-0.6.0
rootdir: /home/$USER/hid-tools, inifile:
plugins: xdist-1.22.5, forked-0.2
collected 1004 items / 1 errors

===================================== ERRORS ======================================
____________________ ERROR collecting tests/test_cli_decode.py ____________________
ImportError while importing test module '/home/$USER/hid-tools/tests/test_cli_decode.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_cli_decode.py:22: in <module>
    from tests.base import UHIDTestDevice
E   ModuleNotFoundError: No module named 'tests.base'
!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!
============================= 1 error in 0.34 seconds =============================

The other tests are directly pulling the imports from base so keep it identical here.

Signed-off-by: Benjamin Tissoires benjamin.tissoires@gmail.com

Edited by Benjamin Tissoires

Merge request reports