Use scope='session' for all fixtures

This means they will only be executed once which makes sense
since the database they create is immutable.
This commit is contained in:
Simon Willison 2018-05-28 13:41:06 -07:00
commit a4d6acc239
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
3 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ CREATE TABLE "office" (
'''
@pytest.fixture(scope='module')
@pytest.fixture(scope='session')
def ds_instance():
with tempfile.TemporaryDirectory() as tmpdir:
filepath = os.path.join(tmpdir, 'test_tables.db')