pytest ModleNotFoundError
解決したいこと
pytest を実行できるようにしたい。
発生している問題・エラー
ModuleNotFoundError: No module named 'source'
該当するソースコード
import source.my_functions as my_functions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
例)
import source.my_functions as my_functions
def test_add():
result = my_functions.add(number_one = 1, number_two = 2)
assert result == 5
自分で試したこと
同列のfolder(source)にmy_functions.pyをいれて、folder(tests)のtest_my_functions.pyにimportしようとした