@@ -46,7 +46,7 @@ def test_create_database(spanner_instance):
46
46
database .drop ()
47
47
48
48
49
- @pytest .fixture (scope = 'module' )
49
+ @pytest .fixture ()
50
50
def temporary_database (spanner_instance ):
51
51
database_id = unique_database_id ()
52
52
snippets .create_database (SPANNER_INSTANCE , database_id )
@@ -84,7 +84,7 @@ def test_read_stale_data(temporary_database, capsys):
84
84
assert 'Total Junk' not in out
85
85
86
86
87
- @pytest .fixture (scope = 'module' )
87
+ @pytest .fixture ()
88
88
def temporary_database_with_column (temporary_database ):
89
89
snippets .add_column (SPANNER_INSTANCE , temporary_database .database_id )
90
90
yield temporary_database
@@ -105,7 +105,7 @@ def test_query_data_with_new_column(temporary_database_with_column, capsys):
105
105
assert 'MarketingBudget' in out
106
106
107
107
108
- @pytest .fixture (scope = 'module' )
108
+ @pytest .fixture ()
109
109
def temporary_database_with_indexes (temporary_database_with_column ):
110
110
snippets .add_index (
111
111
SPANNER_INSTANCE ,
@@ -205,7 +205,7 @@ def test_insert_data_with_timestamp(temporary_database, capsys):
205
205
assert 'Inserted data.' in out
206
206
207
207
208
- @pytest .fixture (scope = 'module' )
208
+ @pytest .fixture ()
209
209
def temp_database_with_timestamps (temporary_database ):
210
210
snippets .create_table_with_timestamp (
211
211
SPANNER_INSTANCE ,
@@ -227,7 +227,7 @@ def test_add_timestamp_column(temp_database_with_timestamps, capsys):
227
227
assert 'Albums' in out
228
228
229
229
230
- @pytest .fixture (scope = 'module' )
230
+ @pytest .fixture ()
231
231
def temp_database_with_timestamps_column (temp_database_with_timestamps ):
232
232
snippets .add_timestamp_column (
233
233
SPANNER_INSTANCE ,
@@ -247,7 +247,7 @@ def test_update_data_with_timestamp(
247
247
assert 'Updated data.' in out
248
248
249
249
250
- @pytest .fixture (scope = 'module' )
250
+ @pytest .fixture ()
251
251
def temp_database_with_timestamps_data (temp_database_with_timestamps_column ):
252
252
snippets .update_data_with_timestamp (
253
253
SPANNER_INSTANCE ,
0 commit comments