fixture 放在conftest.py內 pytest會自動去抓 tests/conftest.py import pytest @pytest.fixture() def db(): print('Connection successful') yield print('Connection ...
確定! 回上一頁