Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit ba0faee

Browse files
committed
changes to number of runs
1 parent aad550c commit ba0faee

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/performance/django_spanner/test_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def test_run(self):
245245
spanner_obj = pd.DataFrame(columns = ['insert_one_row_with_fetch_after', 'read_one_row', 'insert_many_rows', 'select_many_rows',
246246
'insert_many_rows_with_mutations'])
247247

248-
for _ in range(2):
248+
for _ in range(50):
249249
django_obj = django_obj.append(DjangoBenchmarkTest().run(), ignore_index=True)
250250
spanner_obj = spanner_obj.append(SpannerBenchmarkTest().run(), ignore_index=True)
251251

tests/system/django_spanner/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from google.cloud.spanner_v1 import Client
1414
from google.cloud.spanner_v1.instance import Instance, Backup
1515
from test_utils.retry import RetryErrors
16-
import pytest
16+
1717
from django_spanner.creation import DatabaseCreation
1818

1919
CREATE_INSTANCE = (
@@ -30,7 +30,7 @@
3030
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT", "emulator-test-project")
3131
DATABASE_NAME = os.getenv("DJANGO_SPANNER_DB", "django_test_db")
3232

33-
@pytest.mark.django_db(transaction=True)
33+
3434
class Config(object):
3535
"""Run-time configuration to be modified at set-up.
3636
@@ -47,7 +47,7 @@ class Config(object):
4747
def _list_instances():
4848
return list(Config.CLIENT.list_instances())
4949

50-
@pytest.mark.django_db(transaction=True)
50+
5151
def setup_instance():
5252
if USE_EMULATOR:
5353
from google.auth.credentials import AnonymousCredentials
@@ -118,7 +118,7 @@ def teardown_instance():
118118
if CREATE_INSTANCE:
119119
Config.INSTANCE.delete()
120120

121-
@pytest.mark.django_db(transaction=True)
121+
122122
def setup_database():
123123
Config.DATABASE = Config.INSTANCE.database(DATABASE_NAME)
124124
if not Config.DATABASE.exists():

0 commit comments

Comments
 (0)