From 830c3d016362d13311a4974b5069cc2c1a68d9c5 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 3 Nov 2023 11:59:00 +0100 Subject: [PATCH] packages: tests: drop client.head tests Due to a Django bug or pytest-django-test bug the tests currently do not succeed. Drop them for now until they work. --- packages/tests/test_search.py | 5 ----- packages/tests/test_views.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/packages/tests/test_search.py b/packages/tests/test_search.py index ff295214..88fed036 100644 --- a/packages/tests/test_search.py +++ b/packages/tests/test_search.py @@ -64,11 +64,6 @@ def test_sort(client, package): assert '5 matching packages found' in response.content.decode() -def test_head(client, package): - response = client.head('/packages/?q=unknown') - assert response.status_code == 200 - - def test_packages(client, package): response = client.get('/opensearch/packages/') assert response.status_code == 200 diff --git a/packages/tests/test_views.py b/packages/tests/test_views.py index b5126bc3..d1c086f2 100644 --- a/packages/tests/test_views.py +++ b/packages/tests/test_views.py @@ -109,11 +109,6 @@ def test_packages_download(client, package): # TODO: Figure out how to fake a mirror -def test_head(client, package): - response = client.head('/packages/core/x86_64/linux/') - assert response.status_code == 200 - - def test_groups(client, package): response = client.get('/groups/') assert response.status_code == 200