Ola Pessoal,
Estou tentando rodar o test e recebendo o seguinte erro ModuleNotFoundError: No module named 'codigo'
ai rodei o pytest na unha do terminal e retornou um teste passed ai nao sei pq ta acontecendo isso
Alguem poderia me ajudar?
(venv) PS C:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd> & "c:/Users/marci/OneDrive/AREA DE TRABALHO 2022-01-10/py_test_tdd/venv/Scripts/python.exe" "c:/Users/marci/OneDrive/AREA DE TRABALHO 2022-01-10/py_test_tdd/2622-python-tdd-57de629597dabe71ad125067e9dbedde5babe577/tests/test_bytebank.py"
Traceback (most recent call last):
File "c:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd\2622-python-tdd-57de629597dabe71ad125067e9dbedde5babe577\tests\test_bytebank.py", line import codigo.bytebank
ModuleNotFoundError: No module named 'codigo'
(venv) PS C:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd> & "c:/Users/marci/OneDrive/AREA DE TRABALHO 2022-01-10/py_test_tdd/venv/Scripts/python.exe" "c:/Users/marci/OneDrive/AREA DE TRABALHO 2022-01-10/py_test_tdd/2622-python-tdd-57de629597dabe71ad125067e9dbedde5babe577/tests/test_bytebank.py" Traceback (most recent call last):
File "c:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd\2622-python-tdd-57de629597dabe71ad125067e9dbedde5babe577\tests\test_bytebank.py", line 1, in <module> from codigo.bytebank import Funcionario
ModuleNotFoundError: No module named 'codigo'
(venv) PS C:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd> pytest
=============================================================== test session starts ===============================================================
platform win32 -- Python 3.10.11, pytest-7.2.2, pluggy-1.0.0
rootdir: C:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd
collected 1 item
2622-python-tdd-57de629597dabe71ad125067e9dbedde5babe577\tests\test_bytebank.py . [100%]
================================================================ 1 passed in 2.39s ================================================================
(venv) PS C:\Users\marci\OneDrive\AREA DE TRABALHO 2022-01-10\py_test_tdd>
Valeu um abraco! Yuri