Skip to content

Commit

Permalink
[#233] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Nov 19, 2024
1 parent e881323 commit 138cf82
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1828,10 +1828,10 @@ def test_create_partij_indetificator(self):
"identificeerdePartij": {"uuid": str(partij.uuid)},
"anderePartijIdentificator": "anderePartijIdentificator",
"partijIdentificator": {
"codeObjecttype": "codeObjecttype",
"codeSoortObjectId": "codeSoortObjectId",
"objectId": "objectId",
"codeRegister": "codeRegister",
"codeObjecttype": "natuurlijk_persoon",
"codeSoortObjectId": "bsn",
"objectId": "123456788",
"codeRegister": "brp",
},
}

Expand All @@ -1844,10 +1844,10 @@ def test_create_partij_indetificator(self):
self.assertEqual(
data["partijIdentificator"],
{
"codeObjecttype": "codeObjecttype",
"codeSoortObjectId": "codeSoortObjectId",
"objectId": "objectId",
"codeRegister": "codeRegister",
"codeObjecttype": "natuurlijk_persoon",
"codeSoortObjectId": "bsn",
"objectId": "123456788",
"codeRegister": "brp",
},
)

Expand All @@ -1856,10 +1856,10 @@ def test_update_partij_indetificator(self):
partij_identificator = PartijIdentificatorFactory.create(
partij=partij,
andere_partij_identificator="anderePartijIdentificator",
partij_identificator_code_objecttype="codeObjecttype",
partij_identificator_code_soort_object_id="codeSoortObjectId",
partij_identificator_object_id="objectId",
partij_identificator_code_register="codeRegister",
partij_identificator_code_objecttype="natuurlijk_persoon",
partij_identificator_code_soort_object_id="bsn",
partij_identificator_object_id="123456788",
partij_identificator_code_register="brp",
)

detail_url = reverse(
Expand All @@ -1874,21 +1874,21 @@ def test_update_partij_indetificator(self):
self.assertEqual(
data["partijIdentificator"],
{
"codeObjecttype": "codeObjecttype",
"codeSoortObjectId": "codeSoortObjectId",
"objectId": "objectId",
"codeRegister": "codeRegister",
"codeObjecttype": "natuurlijk_persoon",
"codeSoortObjectId": "bsn",
"objectId": "123456788",
"codeRegister": "brp",
},
)

data = {
"identificeerdePartij": {"uuid": str(partij2.uuid)},
"anderePartijIdentificator": "changed",
"partijIdentificator": {
"codeObjecttype": "changed",
"codeSoortObjectId": "changed",
"objectId": "changed",
"codeRegister": "changed",
"codeObjecttype": "natuurlijk_persoon",
"codeSoortObjectId": "bsn",
"objectId": "123456789",
"codeRegister": "brp",
},
}

Expand All @@ -1901,10 +1901,10 @@ def test_update_partij_indetificator(self):
self.assertEqual(
data["partijIdentificator"],
{
"codeObjecttype": "changed",
"codeSoortObjectId": "changed",
"objectId": "changed",
"codeRegister": "changed",
"codeObjecttype": "natuurlijk_persoon",
"codeSoortObjectId": "bsn",
"objectId": "123456789",
"codeRegister": "brp",
},
)

Expand Down

0 comments on commit 138cf82

Please sign in to comment.