This commit is contained in:
afik.cohen 2024-03-05 16:57:45 -08:00
parent a0267490ea
commit 285b6c7d5f

View file

@ -6,7 +6,7 @@ from cli.codeflash.code_utils.git_utils import get_repo_owner_and_name
class TestGitUtils(unittest.TestCase):
@patch('cli.codeflash.code_utils.git_utils.get_remote_url')
@patch("cli.codeflash.code_utils.git_utils.get_remote_url")
def test_test_get_repo_owner_and_name(self, mock_get_remote_url):
# Test with a standard GitHub HTTPS URL
mock_get_remote_url.return_value = "https://github.com/owner/repo.git"
@ -27,5 +27,5 @@ class TestGitUtils(unittest.TestCase):
self.assertEqual(repo_name, "repo")
if __name__ == '__main__':
if __name__ == "__main__":
unittest.main()