Skip to content

Commit 19bc323

Browse files
committed
small change
1 parent 4c2fa2a commit 19bc323

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/sponsors/tests/test_views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ def test_view_brochure_view_with_wrong_signature_fails(client):
3333

3434
def test_view_brochure_view(client):
3535
sponsor_lead = SponsorLeadFactory(brochure_viewed=False, conference__code="code")
36-
brochure = DocumentFactory()
37-
brochure.tags.add("sponsorship-brochure", sponsor_lead.conference.code)
3836

3937
other_brochure = DocumentFactory()
4038
other_brochure.tags.add("sponsorship-brochure", "other-code")
4139

40+
brochure = DocumentFactory()
41+
brochure.tags.add("sponsorship-brochure", sponsor_lead.conference.code)
42+
4243
view_brochure_url_path = reverse("view-brochure", args=[sponsor_lead.id])
4344
signer = Signer()
4445
signature = signer.sign(view_brochure_url_path).split(signer.sep)[-1]

0 commit comments

Comments
 (0)