From 1a31aa8b0d4eae9f4722174a0a61d781b92414e3 Mon Sep 17 00:00:00 2001 From: Tore Brede <Tore.Brede@uib.no> Date: Wed, 1 Sep 2021 08:51:15 +0200 Subject: [PATCH] Fix missing name update --- greg/tests/api/test_person.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/greg/tests/api/test_person.py b/greg/tests/api/test_person.py index 04109689..e94d962a 100644 --- a/greg/tests/api/test_person.py +++ b/greg/tests/api/test_person.py @@ -431,7 +431,7 @@ def test_filter_active_includes_person_with_active_role( ): date_today = datetime.date.today() - PersonRole.objects.create( + Role.objects.create( person=person_foo, role=role_test_guest, end_date=date_today + datetime.timedelta(days=1), @@ -449,7 +449,7 @@ def test_filter_active_includes_person_with_active_role( @pytest.mark.django_db def test_filter_active_excludes_person_with_no_active_role( - client, person_foo: Person, person_foo_role: PersonRole + client, person_foo: Person, person_foo_role: Role ): url = reverse("v1:person-list") response = client.get(url, {"active": "true"}) -- GitLab