File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments