From a53b71bab1f7f95ca9e3fe2781988b160323ae21 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 8 Feb 2021 15:31:15 +0100 Subject: [PATCH] fixed choices --- orchestra/contrib/orchestration/tests/test_route.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/orchestration/tests/test_route.py b/orchestra/contrib/orchestration/tests/test_route.py index 4b7ee121..390661ee 100644 --- a/orchestra/contrib/orchestration/tests/test_route.py +++ b/orchestra/contrib/orchestration/tests/test_route.py @@ -12,7 +12,7 @@ class RouterTests(BaseTestCase): def test_list_backends(self): # TODO count actual, register and compare - choices = list(Route._meta.get_field('backend')._choices) + choices = list(Route._meta.get_field('backend').choices) self.assertLess(1, len(choices)) def test_get_instances(self): @@ -25,7 +25,7 @@ class RouterTests(BaseTestCase): pass choices = backends.ServiceBackend.get_choices() - Route._meta.get_field('backend')._choices = choices + Route._meta.get_field('backend').choices = choices backend = TestBackend.get_name() route = Route.objects.create(backend=backend, host=self.host, match='True')