Skip to content

Commit 65cb522

Browse files
committed
Apply ruff formatting to test files
1 parent 399bff9 commit 65cb522

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

backend/tests/unit/git/test_git_read_only_repository.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ async def test_sync_from_remote_new_ref(git_repo_01_read_only: InfrahubReadOnlyR
7777
repo.client = mock_client
7878

7979
# Mock import_objects_from_files since we're testing git sync, not import functionality
80-
with patch(
81-
"infrahub.git.repository.InfrahubReadOnlyRepository.import_objects_from_files", new_callable=AsyncMock
82-
):
80+
with patch("infrahub.git.repository.InfrahubReadOnlyRepository.import_objects_from_files", new_callable=AsyncMock):
8381
await repo.sync_from_remote()
8482

8583
worktree_commits = {wt.identifier for wt in repo.get_worktrees()}

backend/tests/unit/git/test_git_repository.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,7 @@ async def test_sync_new_branch(
508508

509509
repo.client = client
510510
# Mock import_objects_from_files since we're testing git sync, not import functionality
511-
with patch(
512-
"infrahub.git.repository.InfrahubRepository.import_objects_from_files", new_callable=AsyncMock
513-
):
511+
with patch("infrahub.git.repository.InfrahubRepository.import_objects_from_files", new_callable=AsyncMock):
514512
await repo.sync()
515513
worktrees = repo.get_worktrees()
516514

@@ -528,9 +526,7 @@ async def test_sync_updated_branch(prefect_test_fixture, git_repo_04: InfrahubRe
528526
commit = repo.get_commit_value(branch_name="branch01", remote=True)
529527

530528
# Mock import_objects_from_files since we're testing git sync, not import functionality
531-
with patch(
532-
"infrahub.git.repository.InfrahubRepository.import_objects_from_files", new_callable=AsyncMock
533-
):
529+
with patch("infrahub.git.repository.InfrahubRepository.import_objects_from_files", new_callable=AsyncMock):
534530
await repo.sync()
535531

536532
assert repo.get_commit_value(branch_name="branch01") == str(commit)

0 commit comments

Comments
 (0)