Skip to content
Snippets Groups Projects
Commit a3003c2a authored by Jonas Braathen's avatar Jonas Braathen
Browse files

Simplify test assertion to satisfy linter

parent afb83d08
No related branches found
No related tags found
1 merge request!215Add CSRF_TRUSTED_ORIGINS to development settings
Pipeline #104888 passed
......@@ -49,7 +49,7 @@ def test_add_muliple_sponsors_to_unit(sponsor_foo, sponsor_bar, unit1, unit2):
assert list(sponsor_foo.units.all()) == [unit1]
assert list(sponsor_bar.units.all()) == [unit1]
assert list(Sponsor.objects.filter(units=unit1.id)) == [sponsor_foo, sponsor_bar]
assert list(Sponsor.objects.filter(units=unit2.id)) == []
assert not list(Sponsor.objects.filter(units=unit2.id))
@pytest.mark.django_db
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment