Update tests to not use `is_owned_by`
@@ -951,8 +951,6 @@ class GitLabOAuthTests(TestCase):
return data
def test_make_project_pass(self):
- with mock.patch('readthedocs.oauth.services.gitlab.GitLabService.is_owned_by') as m: # yapf: disable
- m.return_value = True
repo = self.service.create_repository(
self.repo_response_data, organization=self.org,
privacy=self.privacy,
@@ -1009,8 +1007,6 @@ class GitLabOAuthTests(TestCase):
"""
data = self.repo_response_data.copy()
data['visibility'] = 'public'
- with mock.patch('readthedocs.oauth.services.gitlab.GitLabService.is_owned_by') as m: # yapf: disable
- m.return_value = True
repo = self.service.create_repository(data, organization=self.org)
self.assertIsNotNone(repo)
