<aside>
</aside>
์ต์ข ํ๋ก์ ํธ ๊ตฌ์กฐ
graph TD
A(my-pytest-project) --> B(.venv);
A --> C(mycalc);
A --> D(tests);
C --> C1(__init__.py);
C --> C2(mycalc.py);
D --> D1(__init__.py);
D --> D2(test_mycalc.py);
style B fill:#eee,stroke:#333,stroke-dasharray: 5 5;
style C fill:#ccf,stroke:#333;
style D fill:#cfc,stroke:#333;
my-pytest-project/
: ์ต์์ ํด๋.venv/
: ํ์ด์ฌ ๊ฐ์ํ๊ฒฝ ํด๋ (ํ๋ก์ ํธ๋ณ ๋
๋ฆฝ ํ๊ฒฝ)mycalc/
: ์ค์ ํ์ด์ฌ ์ฝ๋ ํจํค์ง ํด๋
__init__.py
: ํจํค์ง ์ธ์์ฉ ๋น ํ์ผmycalc.py
: ๊ณ์ฐ๊ธฐ ํจ์ ์์ฑ ์์ (๋น ํ์ผ)tests/
: ํ
์คํธ ์ฝ๋ ํด๋
__init__.py
: ํจํค์ง ์ธ์์ฉ ๋น ํ์ผtest_mycalc.py
: mycalc.py
ํ
์คํธ ์ฝ๋ ์์ฑ ์์ (๋น ํ์ผ)์ฐธ๊ณ : OS์ ๋ฐ๋ผ ๋ช ๋ น์ด ์ฐจ์ด ํ์ธ.