Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agjohnson committed Apr 21, 2017
1 parent 0f64703 commit 24f800f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readthedocs/projects/views/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,9 @@ def get_template_names(self):


class IntegrationDelete(IntegrationMixin, DeleteView):
pass

def get(self, request, *args, **kwargs):
return self.http_method_not_allowed(request, *args, **kwargs)


class IntegrationExchangeDetail(IntegrationMixin, DetailView):
Expand Down
2 changes: 2 additions & 0 deletions readthedocs/rtd_tests/tests/test_privacy_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class PrivateProjectAdminAccessTest(PrivateProjectMixin, TestCase):
'/dashboard/pip/redirects/delete/': {'status_code': 405},
'/dashboard/pip/integrations/sync/': {'status_code': 405},
'/dashboard/pip/integrations/1/sync/': {'status_code': 405},
'/dashboard/pip/integrations/1/delete/': {'status_code': 405},
}

def login(self):
Expand Down Expand Up @@ -253,6 +254,7 @@ class PrivateProjectUserAccessTest(PrivateProjectMixin, TestCase):
'/dashboard/pip/redirects/delete/': {'status_code': 405},
'/dashboard/pip/integrations/sync/': {'status_code': 405},
'/dashboard/pip/integrations/1/sync/': {'status_code': 405},
'/dashboard/pip/integrations/1/delete/': {'status_code': 405},
}

# Filtered out by queryset on projects that we don't own.
Expand Down

0 comments on commit 24f800f

Please sign in to comment.