When using this method you must ensure that your tests do not change the database state. Put this in conftest.py: import pytest. @pytest.fixture(scope='session').
確定! 回上一頁