Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Caverly <[email protected]>
  • Loading branch information
coreycaverly committed Oct 5, 2023
1 parent e1a9cbd commit f1e81b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_get_files(self):
repository_file = MagicMock(path='afile.txt', type='not_dir')
self.repo._source_repo.get_contents.side_effect = [[MagicMock(path='directory', type='dir')],[repository_file]]
self.repo.get_files()
self.repo._source_repo.get_contents.assert_has_calls([call('', 'refs/heads/target'), call('directory', 'refs/heads/target')])
self.repo._source_repo.get_contents.assert_has_calls([call('', 'target'), call('directory', 'target')])
self.assertEquals(self.repo.files, [repository_file])

def test_set_target_branch(self):
Expand Down

0 comments on commit f1e81b9

Please sign in to comment.