Skip to content

Commit 9250eb0

Browse files
committed
test: Add test for null version 832de18
1 parent fcffaae commit 9250eb0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_general.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,15 @@ def test_explore_page_null_tag(client):
252252
assert resp.status_code == 200
253253

254254

255+
@pytest.mark.django_db
256+
def test_explore_page_null_version(client):
257+
data = SuppliedData.objects.create()
258+
data.original_file.save("test.json", ContentFile('{"version":null,"releases":[{}]}'))
259+
data.current_app = "cove_ocds"
260+
resp = client.get(data.get_absolute_url())
261+
assert resp.status_code == 200
262+
263+
255264
@pytest.mark.django_db
256265
@pytest.mark.parametrize(
257266
"json_data",

0 commit comments

Comments
 (0)