pytest 사용시 PYTHONPATH=. 설정 방법
작업환경: Ubuntu 디렉토리 구조 . ├── src │ ├── __init__.py │ └── foo.py └── test └── test_foo.py 위와 같은 구조에서 아래와 같이 pytest 를 하면 바로 에러가 발생한다. $ pytest test/ =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.8.5, pytest-6...
컴퓨터관련 쪽지
2021. 3. 25. 02:13