Correct the tests for customer list view

This commit is contained in:
Andreas Zweili 2023-03-11 17:50:32 +01:00
parent 2211aa7417
commit 48ec5b7ee4

View File

@ -34,8 +34,11 @@ def test_customer_list_view(create_admin_user):
) )
fixture = create_admin_user() fixture = create_admin_user()
customer = fixture["customer"] customer = fixture["customer"]
customer.project_manager = project_manager customer.project_manager.set(
customer.save() [
project_manager,
]
)
client = Client() client = Client()
client.login(username="pharma-admin", password="password") client.login(username="pharma-admin", password="password")
response = client.get("/") response = client.get("/")