Skip to content

Commit 5b1bd80

Browse files
committed
Fixed tests
1 parent 3d8813b commit 5b1bd80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readthedocs/rtd_tests/tests/test_privacy_urls.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ class PrivateProjectAdminAccessTest(PrivateProjectMixin, TestCase):
238238
'/dashboard/import/manual/demo/': {'status_code': 302},
239239
'/dashboard/pip/': {'status_code': 301},
240240
'/dashboard/pip/subprojects/delete/sub/': {'status_code': 302},
241-
'/dashboard/pip/translations/delete/sub/': {'status_code': 302},
242-
243-
# This depends on an inactive project
244-
'/dashboard/pip/version/latest/delete_html/': {'status_code': 400},
245241

246242
# 405's where we should be POST'ing
247243
'/dashboard/pip/users/delete/': {'status_code': 405},
@@ -252,6 +248,8 @@ class PrivateProjectAdminAccessTest(PrivateProjectMixin, TestCase):
252248
'/dashboard/pip/integrations/{integration_id}/sync/': {'status_code': 405},
253249
'/dashboard/pip/integrations/{integration_id}/delete/': {'status_code': 405},
254250
'/dashboard/pip/environmentvariables/{environmentvariable_id}/delete/': {'status_code': 405},
251+
'/dashboard/pip/translations/delete/sub/': {'status_code': 405},
252+
'/dashboard/pip/version/latest/delete_html/': {'status_code': 405},
255253
}
256254

257255
def get_url_path_ctx(self):
@@ -288,6 +286,8 @@ class PrivateProjectUserAccessTest(PrivateProjectMixin, TestCase):
288286
'/dashboard/pip/integrations/{integration_id}/sync/': {'status_code': 405},
289287
'/dashboard/pip/integrations/{integration_id}/delete/': {'status_code': 405},
290288
'/dashboard/pip/environmentvariables/{environmentvariable_id}/delete/': {'status_code': 405},
289+
'/dashboard/pip/translations/delete/sub/': {'status_code': 405},
290+
'/dashboard/pip/version/latest/delete_html/': {'status_code': 405},
291291
}
292292

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

0 commit comments

Comments
 (0)