From 550c4db74e1d58cbf044a0bbd42228248062a49c Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 8 Feb 2021 18:47:16 +0100 Subject: [PATCH] fixing test_route --- orchestra/contrib/orchestration/tests/test_route.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/orchestra/contrib/orchestration/tests/test_route.py b/orchestra/contrib/orchestration/tests/test_route.py index 390661ee..ba1954e9 100644 --- a/orchestra/contrib/orchestration/tests/test_route.py +++ b/orchestra/contrib/orchestration/tests/test_route.py @@ -17,7 +17,7 @@ class RouterTests(BaseTestCase): def test_get_instances(self): - class TestBackend(backends.ServiceController): + class ServiceBackend(backends.ServiceController): verbose_name = 'Route' models = ['routes.Route'] @@ -26,14 +26,14 @@ class RouterTests(BaseTestCase): choices = backends.ServiceBackend.get_choices() Route._meta.get_field('backend').choices = choices - backend = TestBackend.get_name() + backend = ServiceBackend.get_name() route = Route.objects.create(backend=backend, host=self.host, match='True') - operation = Operation(backend=TestBackend, instance=route, action='save') + operation = Operation(backend=ServiceBackend, instance=route, action='save') self.assertEqual(1, len(Route.objects.get_for_operation(operation))) route = Route.objects.create(backend=backend, host=self.host1, - match='route.backend == "%s"' % TestBackend.get_name()) + match='route.backend == "%s"' % ServiceBackend.get_name()) self.assertEqual(2, len(Route.objects.get_for_operation(operation))) route = Route.objects.create(backend=backend, host=self.host2,