diff --git a/lemarche/api/networks/tests.py b/lemarche/api/networks/tests.py index a15b5639b..dd9bfe6b6 100644 --- a/lemarche/api/networks/tests.py +++ b/lemarche/api/networks/tests.py @@ -8,8 +8,8 @@ class NetworkApiTest(TestCase): @classmethod def setUpTestData(cls): - NetworkFactory() - NetworkFactory() + NetworkFactory(name="Reseau 1") + NetworkFactory(name="Reseau 2") UserFactory(api_key="admin") def test_should_return_network_list(self): diff --git a/lemarche/api/siaes/tests.py b/lemarche/api/siaes/tests.py index 75c99a6f7..abfdcf433 100644 --- a/lemarche/api/siaes/tests.py +++ b/lemarche/api/siaes/tests.py @@ -74,8 +74,8 @@ def setUpTestData(cls): kind=siae_constants.KIND_EI, presta_type=[siae_constants.PRESTA_DISP], department="01" ) siae_with_sector_2.sectors.add(cls.sector_2) - cls.network_1 = NetworkFactory() - cls.network_2 = NetworkFactory() + cls.network_1 = NetworkFactory(name="Reseau 1") + cls.network_2 = NetworkFactory(name="Reseau 2") siae_with_network_1 = SiaeFactory( kind=siae_constants.KIND_EI, presta_type=[siae_constants.PRESTA_DISP], department="01" ) diff --git a/lemarche/networks/tests.py b/lemarche/networks/tests.py index 670793a28..3923aee9f 100644 --- a/lemarche/networks/tests.py +++ b/lemarche/networks/tests.py @@ -23,8 +23,8 @@ class NetworkQuerySetTest(TestCase): def setUpTestData(cls): cls.siae_1 = SiaeFactory() cls.siae_2 = SiaeFactory() - cls.network = NetworkFactory() - cls.network_with_user_partner = NetworkFactory() + cls.network = NetworkFactory(name="Reseau") + cls.network_with_user_partner = NetworkFactory(name="Reseau avec utilisateur") cls.network_with_siaes = NetworkFactory(siaes=[cls.siae_1, cls.siae_2]) cls.user = UserFactory(partner_network=cls.network_with_user_partner) diff --git a/lemarche/www/dashboard_networks/tests.py b/lemarche/www/dashboard_networks/tests.py index b54d1b134..7ce800fa1 100644 --- a/lemarche/www/dashboard_networks/tests.py +++ b/lemarche/www/dashboard_networks/tests.py @@ -23,8 +23,8 @@ def setUpTestData(cls): # "dashboard_networks:tender_detail" # "dashboard_networks:siae_tender_list" ] - cls.network_1 = NetworkFactory(name="Liste 1") - cls.network_2 = NetworkFactory(name="Liste 2") + cls.network_1 = NetworkFactory(name="Reseau 1") + cls.network_2 = NetworkFactory(name="Reseau 2") cls.user_network_1 = UserFactory(kind=User.KIND_PARTNER, partner_network=cls.network_1) cls.user_network_2 = UserFactory(kind=User.KIND_PARTNER, partner_network=cls.network_2) cls.user_buyer = UserFactory(kind=User.KIND_BUYER, company_name="Entreprise Buyer")