This commit is contained in:
Daniel Bauer
2024-11-11 09:40:52 +01:00
parent 01affafd7a
commit 8b09f4feb5
9 changed files with 13 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ from signposting import Signpost, LinkRel
def test_add_signpost():
response = HttpResponse()
add_signposts(response, Signpost(LinkRel.item,"http://example.com"))
add_signposts(response, Signpost(LinkRel.item, "http://example.com"))
assert len(response._signposts) == 1
@@ -18,7 +18,6 @@ def test_add_multiple_signposts():
Signpost(LinkRel.author, "https://example3.com"),
)
assert len(response._signposts) == 3
@@ -35,4 +34,4 @@ def test_add_signpost_duplicate():
add_signposts(response, Signpost(LinkRel.item, "http://example.com"))
add_signposts(response, Signpost(LinkRel.item, "http://example.com"))
assert len(response._signposts) == 1
assert len(response._signposts) == 1