@@ -31,14 +31,17 @@ def test_resolve_repository_existing(self, mock_repository, mock_info):
3131 return_value = mock_queryset ,
3232 ) as mock_select_related :
3333 result = RepositoryQuery .resolve_repository (
34- None , mock_info , repository_key = "test-repo" , organization_key = "test-org"
34+ None ,
35+ mock_info ,
36+ organization_key = "test-org" ,
37+ repository_key = "test-repo" ,
3538 )
3639
3740 assert result == mock_repository
3841 mock_select_related .assert_called_once_with ("organization" )
3942 mock_queryset .get .assert_called_once_with (
40- key__iexact = "test-repo" ,
4143 organization__login__iexact = "test-org" ,
44+ key__iexact = "test-repo" ,
4245 )
4346
4447 def test_resolve_repository_not_found (self , mock_info ):
@@ -53,13 +56,13 @@ def test_resolve_repository_not_found(self, mock_info):
5356 result = RepositoryQuery .resolve_repository (
5457 None ,
5558 mock_info ,
56- repository_key = "non-existent-repo" ,
5759 organization_key = "non-existent-org" ,
60+ repository_key = "non-existent-repo" ,
5861 )
5962
6063 assert result is None
6164 mock_select_related .assert_called_once_with ("organization" )
6265 mock_queryset .get .assert_called_once_with (
63- key__iexact = "non-existent-repo" ,
6466 organization__login__iexact = "non-existent-org" ,
67+ key__iexact = "non-existent-repo" ,
6568 )
0 commit comments