Use set correctly

This commit is contained in:
Andreas Zweili 2023-03-11 17:47:58 +01:00
parent 9a8244e256
commit 2211aa7417
1 changed files with 5 additions and 2 deletions

View File

@ -29,8 +29,11 @@ def test_customer_detail_view(create_admin_user):
project_manager = User.objects.create_superuser(
"meyer", "meyer@contria.com", "password"
)
customer.project_manager.set(project_manager)
customer.save()
customer.project_manager.set(
[
project_manager,
]
)
client = Client()
client.login(username="pharma-admin", password="password")
response = client.get("/customer/" + str(customer.id) + "/")