============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-threat9-test-bed/src/python-threat9-test-bed plugins: Faker-8.16.0 collected 0 items / 5 errors ==================================== ERRORS ==================================== ______ ERROR collecting tests/service_mocks/test_http_scenario_service.py ______ ImportError while importing test module '/build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_http_scenario_service.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/service_mocks/test_http_scenario_service.py:6: in from threat9_test_bed.service_mocks.http_scenario_service import ( threat9_test_bed/service_mocks/__init__.py:1: in from .http_scenario_service import HttpScenarioService # noqa: F401 threat9_test_bed/service_mocks/http_scenario_service.py:5: in from .base_http_service import WerkzeugBasedHttpService threat9_test_bed/service_mocks/base_http_service.py:9: in from ..http_service.gunicorn_server import GunicornServer threat9_test_bed/http_service/gunicorn_server.py:5: in from gunicorn.app.base import BaseApplication E ModuleNotFoundError: No module named 'gunicorn' ________ ERROR collecting tests/service_mocks/test_http_service_mock.py ________ ImportError while importing test module '/build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_http_service_mock.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/service_mocks/test_http_service_mock.py:5: in from threat9_test_bed.service_mocks.http_service_mock import HttpServiceMock threat9_test_bed/service_mocks/__init__.py:1: in from .http_scenario_service import HttpScenarioService # noqa: F401 threat9_test_bed/service_mocks/http_scenario_service.py:5: in from .base_http_service import WerkzeugBasedHttpService threat9_test_bed/service_mocks/base_http_service.py:9: in from ..http_service.gunicorn_server import GunicornServer threat9_test_bed/http_service/gunicorn_server.py:5: in from gunicorn.app.base import BaseApplication E ModuleNotFoundError: No module named 'gunicorn' ________ ERROR collecting tests/service_mocks/test_tcp_service_mock.py _________ ImportError while importing test module '/build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_tcp_service_mock.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/service_mocks/test_tcp_service_mock.py:4: in from threat9_test_bed.service_mocks import TCPServiceMock threat9_test_bed/service_mocks/__init__.py:1: in from .http_scenario_service import HttpScenarioService # noqa: F401 threat9_test_bed/service_mocks/http_scenario_service.py:5: in from .base_http_service import WerkzeugBasedHttpService threat9_test_bed/service_mocks/base_http_service.py:9: in from ..http_service.gunicorn_server import GunicornServer threat9_test_bed/http_service/gunicorn_server.py:5: in from gunicorn.app.base import BaseApplication E ModuleNotFoundError: No module named 'gunicorn' _______ ERROR collecting tests/service_mocks/test_telnet_service_mock.py _______ ImportError while importing test module '/build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/service_mocks/test_telnet_service_mock.py:7: in from threat9_test_bed.service_mocks.telnet_service_mock import ( threat9_test_bed/service_mocks/__init__.py:1: in from .http_scenario_service import HttpScenarioService # noqa: F401 threat9_test_bed/service_mocks/http_scenario_service.py:5: in from .base_http_service import WerkzeugBasedHttpService threat9_test_bed/service_mocks/base_http_service.py:9: in from ..http_service.gunicorn_server import GunicornServer threat9_test_bed/http_service/gunicorn_server.py:5: in from gunicorn.app.base import BaseApplication E ModuleNotFoundError: No module named 'gunicorn' ________ ERROR collecting tests/service_mocks/test_udp_service_mock.py _________ ImportError while importing test module '/build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_udp_service_mock.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/service_mocks/test_udp_service_mock.py:4: in from threat9_test_bed.service_mocks import UDPServiceMock threat9_test_bed/service_mocks/__init__.py:1: in from .http_scenario_service import HttpScenarioService # noqa: F401 threat9_test_bed/service_mocks/http_scenario_service.py:5: in from .base_http_service import WerkzeugBasedHttpService threat9_test_bed/service_mocks/base_http_service.py:9: in from ..http_service.gunicorn_server import GunicornServer threat9_test_bed/http_service/gunicorn_server.py:5: in from gunicorn.app.base import BaseApplication E ModuleNotFoundError: No module named 'gunicorn' =============================== warnings summary =============================== tests/service_mocks/test_tcp_service_mock.py:18 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_tcp_service_mock.py:18: DeprecationWarning: invalid escape sequence '\d' mocked_foo = target.get_command_mock(re.compile(b"\d\dfoo\d\d")) tests/service_mocks/test_telnet_service_mock.py:49 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:49: DeprecationWarning: invalid escape sequence '\$' tn.expect([b"admin@target:~\$"], 1.0) tests/service_mocks/test_telnet_service_mock.py:74 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:74: DeprecationWarning: invalid escape sequence '\$' tn.expect([login + b"@target:~\$"], 1.0) tests/service_mocks/test_telnet_service_mock.py:109 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:109: DeprecationWarning: invalid escape sequence '\$' _, match_object, foo = tn.expect([login + b"@target:~\$"], 1.0) tests/service_mocks/test_telnet_service_mock.py:140 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:140: DeprecationWarning: invalid escape sequence '\d' mock = target.get_command_mock(re.compile("\d\dscoo\d\d")) tests/service_mocks/test_telnet_service_mock.py:152 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:152: DeprecationWarning: invalid escape sequence '\$' tn.expect([b"admin@target:~\$"], 1.0) tests/service_mocks/test_udp_service_mock.py:18 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_udp_service_mock.py:18: DeprecationWarning: invalid escape sequence '\d' mocked_scoo = target.get_command_mock(re.compile(b"\d\dfoo\d\d")) -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ ERROR tests/service_mocks/test_http_scenario_service.py ERROR tests/service_mocks/test_http_service_mock.py ERROR tests/service_mocks/test_tcp_service_mock.py ERROR tests/service_mocks/test_telnet_service_mock.py ERROR tests/service_mocks/test_udp_service_mock.py !!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!! ======================== 7 warnings, 5 errors in 1.67s ========================= ==> ERROR: A failure occurred in check().  Aborting...