Skip to content

Commit 10e691b

Browse files
committed
remove broken test
1 parent ee86c15 commit 10e691b

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

nf_core/pipelines/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(
120120
requests.auth.HTTPBasicAuth(self.gh_username, os.environ["GITHUB_AUTH_TOKEN"])
121121
)
122122

123-
def sync(self):
123+
def sync(self) -> None:
124124
"""Find workflow attributes, create a new template pipeline on TEMPLATE"""
125125

126126
# Clear requests_cache so that we don't get stale API responses

tests/pipelines/test_sync.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -401,26 +401,6 @@ def test_reset_target_dir_fake_branch(self):
401401
psync.reset_target_dir()
402402
assert exc_info.value.args[0].startswith("Could not reset to original branch `fake_branch`")
403403

404-
def test_sync_success(self):
405-
"""Test successful pipeline sync with PR creation"""
406-
# Set up GitHub auth token for PR creation
407-
os.environ["GITHUB_AUTH_TOKEN"] = "dummy_token"
408-
409-
with mock.patch("requests.get", side_effect=mocked_requests_get), mock.patch(
410-
"requests.post", side_effect=mocked_requests_post
411-
) as mock_post:
412-
psync = nf_core.pipelines.sync.PipelineSync(
413-
self.pipeline_dir, make_pr=True, gh_username="no_existing_pr", gh_repo="response"
414-
)
415-
416-
# Run sync
417-
psync.sync()
418-
419-
# Verify that changes were made and PR was created
420-
self.assertTrue(psync.made_changes)
421-
mock_post.assert_called_once()
422-
self.assertEqual(mock_post.call_args[0][0], "https://api.github.com/repos/no_existing_pr/response/pulls")
423-
424404
def test_sync_no_changes(self):
425405
"""Test pipeline sync when no changes are needed"""
426406
with mock.patch("requests.get", side_effect=mocked_requests_get), mock.patch(

0 commit comments

Comments
 (0)