From c7fd5e87249712de85830f7f20a2f7ac287fa4d7 Mon Sep 17 00:00:00 2001 From: SilviaAmAm Date: Fri, 3 Nov 2023 14:02:18 +0100 Subject: [PATCH] :white_check_mark: [open-formulieren/open-forms#3435] Test string method --- token_exchange/tests/test_models.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 token_exchange/tests/test_models.py diff --git a/token_exchange/tests/test_models.py b/token_exchange/tests/test_models.py new file mode 100644 index 0000000..3fff481 --- /dev/null +++ b/token_exchange/tests/test_models.py @@ -0,0 +1,10 @@ +from django.test import TestCase + +from .factories import TokenExchangeConfigurationFactory + + +class TokenExchangeConfigurationTests(TestCase): + def test_string_method(self): + config = TokenExchangeConfigurationFactory.create(service__label="A label") + + self.assertEqual("A label", str(config))