Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 25, 2023
1 parent 16f42f6 commit a1d5de6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lemarche/api/networks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions lemarche/api/siaes/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions lemarche/networks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions lemarche/www/dashboard_networks/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a1d5de6

Please sign in to comment.