HOME > プログラミング > FastAPI imported module ‘test_room’ has this __file__ attributes which is not the same as the test file we want to collect: 2022.01.01 2022.05.06 FastAPIFlaskPython Flaskのプロジェクトでテストを書いていたら、なぜかタイトルのエラーが発生 問題点は各ディレクトリに __init__.py ファイルがないことで、各ディレクトリに追加することで解消できました! こちら参考画像 参考記事 なし、思い出した