Skip to content

Commit 1cf6dfe

Browse files
[#262] Fix test
1 parent 77d5d67 commit 1cf6dfe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/openklant/components/klantinteracties/api/tests/test_partijen.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,16 @@ def test_read_partij_and_partij_identificatoren(self):
115115

116116
self.assertEqual(response.status_code, status.HTTP_200_OK)
117117
data = response.json()
118+
url = "http://testserver/klantinteracties/api/v1"
118119
self.assertEqual(
119120
data["partijIdentificatoren"],
120121
[
121122
{
122123
"uuid": str(partij_identificator.uuid),
123-
"url": f"http://testserver/klantinteracties/api/v1/partij-identificatoren/{str(partij_identificator.uuid)}",
124+
"url": f"{url}/partij-identificatoren/{str(partij_identificator.uuid)}",
124125
"identificeerdePartij": {
125126
"uuid": str(partij.uuid),
126-
"url": f"http://testserver/klantinteracties/api/v1/partijen/{str(partij.uuid)}",
127+
"url": f"{url}/partijen/{str(partij.uuid)}",
127128
},
128129
"anderePartijIdentificator": "society",
129130
"partijIdentificator": {

0 commit comments

Comments
 (0)