Skip to content

Commit

Permalink
[#3607] Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Jan 4, 2024
1 parent f504f53 commit aab22d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/openforms/contrib/brk/tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
class BRKValidatorTestCase(OFVCRMixin, BRKTestMixin, TestCase):
VCR_TEST_FILES = TEST_FILES

def test_brk_validator_serializer(self):
serializer = BRKZakelijkGerechtigdeValidator.value_serializer(
data={"value": {"postcode": "1234 aB", "house_number": "1"}}
)
serializer.is_valid(raise_exception=True)
self.assertEqual(
serializer.data, {"value": {"postcode": "1234AB", "house_number": "1"}}
)

def test_brk_validator_no_auth(self):
validator = BRKZakelijkGerechtigdeValidator()

Expand Down

0 comments on commit aab22d0

Please sign in to comment.