WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 08fa0d5

Browse files
fix: test stuff
1 parent 9dd8430 commit 08fa0d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/worker/tasks/tests/unit/test_sync_repos_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def test_sync_repos_lock_error(self, dbsession, mock_redis):
457457
"tasks/tests/unit/cassetes/test_sync_repos_task/TestSyncReposTaskUnit/test_only_public_repos_not_in_db.yaml"
458458
)
459459
@respx.mock
460-
@pytest.mark.django_db
460+
@pytest.mark.django_db(transaction=True)
461461
def test_only_public_repos_not_in_db(self, dbsession):
462462
mock_all_plans_and_tiers()
463463
token = "ecd73a086eadc85db68747a66bdbd662a785a072"
@@ -728,7 +728,7 @@ async def mock_list_repos_generator(*args, **kwargs):
728728
"tasks/tests/unit/cassetes/test_sync_repos_task/TestSyncReposTaskUnit/test_only_public_repos_not_in_db.yaml"
729729
)
730730
@respx.mock
731-
@pytest.mark.django_db
731+
@pytest.mark.django_db(transaction=True)
732732
def test_insert_repo_and_call_repo_sync_languages(self, dbsession):
733733
mock_all_plans_and_tiers()
734734
token = "ecd73a086eadc85db68747a66bdbd662a785a072"

0 commit comments

Comments
 (0)