Skip to content

Commit c89dd14

Browse files
committed
Remove fixture scope.
1 parent d164f82 commit c89dd14

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spanner/cloud-client/snippets_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_create_database(spanner_instance):
4646
database.drop()
4747

4848

49-
@pytest.fixture(scope='module')
49+
@pytest.fixture()
5050
def temporary_database(spanner_instance):
5151
database_id = unique_database_id()
5252
snippets.create_database(SPANNER_INSTANCE, database_id)
@@ -84,7 +84,7 @@ def test_read_stale_data(temporary_database, capsys):
8484
assert 'Total Junk' not in out
8585

8686

87-
@pytest.fixture(scope='module')
87+
@pytest.fixture()
8888
def temporary_database_with_column(temporary_database):
8989
snippets.add_column(SPANNER_INSTANCE, temporary_database.database_id)
9090
yield temporary_database
@@ -105,7 +105,7 @@ def test_query_data_with_new_column(temporary_database_with_column, capsys):
105105
assert 'MarketingBudget' in out
106106

107107

108-
@pytest.fixture(scope='module')
108+
@pytest.fixture()
109109
def temporary_database_with_indexes(temporary_database_with_column):
110110
snippets.add_index(
111111
SPANNER_INSTANCE,
@@ -205,7 +205,7 @@ def test_insert_data_with_timestamp(temporary_database, capsys):
205205
assert 'Inserted data.' in out
206206

207207

208-
@pytest.fixture(scope='module')
208+
@pytest.fixture()
209209
def temp_database_with_timestamps(temporary_database):
210210
snippets.create_table_with_timestamp(
211211
SPANNER_INSTANCE,
@@ -227,7 +227,7 @@ def test_add_timestamp_column(temp_database_with_timestamps, capsys):
227227
assert 'Albums' in out
228228

229229

230-
@pytest.fixture(scope='module')
230+
@pytest.fixture()
231231
def temp_database_with_timestamps_column(temp_database_with_timestamps):
232232
snippets.add_timestamp_column(
233233
SPANNER_INSTANCE,
@@ -247,7 +247,7 @@ def test_update_data_with_timestamp(
247247
assert 'Updated data.' in out
248248

249249

250-
@pytest.fixture(scope='module')
250+
@pytest.fixture()
251251
def temp_database_with_timestamps_data(temp_database_with_timestamps_column):
252252
snippets.update_data_with_timestamp(
253253
SPANNER_INSTANCE,

0 commit comments

Comments
 (0)