Closed jarednielsen closed 4 years ago
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
pytest tests _____________________________________________________________ ERROR at setup of test_asymmetric_cse_encrypt_decrypt_aes_cbc ______________________________________________________________ @pytest.yield_fixture(scope="session") def s3_server(): host = "localhost" port = 5002 url = "http://{host}:{port}".format(host=host, port=port) > process = start_service('s3', host, port) tests/mock_server.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/mock_server.py:19: in start_service process = sp.Popen(args, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE) # shell=True /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py:1436: in _execute_child executable = os.fsencode(executable) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ filename = None def fsencode(filename): """Encode filename (an os.PathLike, bytes, or str) to the filesystem encoding with 'surrogateescape' error handler, return bytes unchanged. On Windows, use 'strict' error handler if the file system encoding is 'mbcs' (which is the default encoding). """ > filename = fspath(filename) # Does type-checking of `filename`. E TypeError: expected str, bytes or os.PathLike object, not NoneType /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/os.py:809: TypeError
That looks suspiciously like it cant run moto server to do the mocking. There should be moto_server available on the path I think.
moto_server
Description
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
What I Did