환경에 따라 mongo client 인스턴스를 만들어 사용하려고 함테스트 코드 상에서 의존성 주입을 하려고 했는데 pytest는 테스트 클래스에 \_\_init\_\_ 메서드를 만들 수 없었음. 다른 메서드에 def a(b: B): 이렇게 의존성 주입을 하려고 하니까
환경 : vscode, pytest, django, poetry venv, pytest-django-dotenvpoetry 가상환경에서 pytest를 실행하면 에러가 발생함원인 : pytest-django-dotenv 이게 poetry 가상환경 경로 + pytest.i
pytest.inienv_path -> env_files
SQLite does not support autoincrement for composite primary keys
https://stackoverflow.com/questions/51504144/how-can-i-reset-a-django-test-database-ids-after-each-test