From 0887e4bbde66c152e8263f6d40cf40ace8b52272 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 27 Aug 2021 13:15:28 +0200 Subject: [PATCH] [WEI] Fix some tests, without considering WEI algorithm Signed-off-by: Yohann D'ANELLO --- apps/wei/tests/test_wei_registration.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/wei/tests/test_wei_registration.py b/apps/wei/tests/test_wei_registration.py index c9d87fcc..b3a4dd94 100644 --- a/apps/wei/tests/test_wei_registration.py +++ b/apps/wei/tests/test_wei_registration.py @@ -188,7 +188,9 @@ class TestWEIRegistration(TestCase): response = self.client.post(reverse("wei:add_bus", kwargs=dict(pk=self.wei.pk)), dict( wei=self.wei.id, name="Create Bus Test", + size=50, description="This bus was created.", + information_json="{}", )) qs = Bus.objects.filter(name="Create Bus Test") self.assertTrue(qs.exists()) @@ -218,7 +220,9 @@ class TestWEIRegistration(TestCase): response = self.client.post(reverse("wei:update_bus", kwargs=dict(pk=self.bus.pk)), dict( name="Update Bus Test", + size=40, description="This bus was updated.", + information_json="{}", )) qs = Bus.objects.filter(name="Update Bus Test", id=self.bus.id) self.assertRedirects(response, reverse("wei:manage_bus", kwargs=dict(pk=self.bus.pk)), 302, 200)