(tests) fix tests after adding slugs to domains

- slug readonly on admin
- fix test to expect slug in payload, when retrieving a domain
This commit is contained in:
Marie PUPO JEAMMET
2024-06-19 16:48:07 +02:00
committed by Sebastien Nobour
parent 93d4abee58
commit 19c36eafde
5 changed files with 24 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ def test_api_mail_domains__retrieve_authenticated_related():
assert response.json() == {
"id": str(domain.id),
"name": domain.name,
"slug": domain.slug,
"created_at": domain.created_at.isoformat().replace("+00:00", "Z"),
"updated_at": domain.updated_at.isoformat().replace("+00:00", "Z"),
}