Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwojcik committed Nov 10, 2024
1 parent 1e486af commit 5b4154c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testproject/testapp/tests/test_urls/test_urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import pathlib
from contextlib import suppress

import pytest
from deepdiff import DeepDiff
Expand Down Expand Up @@ -42,11 +43,9 @@ def get_all_urls(patterns, prefix=""):
"Function based views are not supported"
)
# head is not present in the CI for some reason...
try:
with suppress(ValueError):
i = allowed_methods.index("head")
del allowed_methods[i]
except ValueError:
pass

urls.append(
{
Expand Down

0 comments on commit 5b4154c

Please sign in to comment.