From 920ea0d0588820d4cf5503b626def139d40e8ab0 Mon Sep 17 00:00:00 2001 From: Arona Date: Tue, 26 May 2020 15:10:27 +0100 Subject: [PATCH] What about if I did this --- RIGS/tests/test_functional.py | 10 +++++----- setup.cfg | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RIGS/tests/test_functional.py b/RIGS/tests/test_functional.py index 20945954..4ccb7178 100644 --- a/RIGS/tests/test_functional.py +++ b/RIGS/tests/test_functional.py @@ -30,7 +30,7 @@ class BaseRigboardTest(AutoLoginTest): self.vatrate = models.VatRate.objects.create(start_at='2014-03-05', rate=0.20, comment='test1') super().setUp() self.client = models.Person.objects.create(name='Rigboard Test Person', email='rigboard@functional.test') - self.wait = WebDriverWait(self.driver, 5) + self.wait = WebDriverWait(self.driver, 10) def select_event_type(self, event_type): self.wait.until(animation_is_finished()) @@ -168,7 +168,7 @@ class TestEventCreate(BaseRigboardTest): self.page.person_selector.toggle() # TODO - + # TODO Convert the below three tests into non-live tests and use only one wrong data in the above test to check error display def test_date_validation(self): self.select_event_type("Rig") @@ -187,14 +187,14 @@ class TestEventCreate(BaseRigboardTest): self.assertFalse(self.page.success) self.assertIn("can't finish before it has started", self.page.errors["General form errors"][0]) self.wait.until(animation_is_finished()) - + # Fix it self.page.end_date = datetime.date(2020, 1, 11) - + # Should work self.page.submit() self.assertTrue(self.page.success) - + # TODO Seperated because of the way submit checks erroring def test_date_validation_2(self): self.select_event_type("Rig") diff --git a/setup.cfg b/setup.cfg index 734a17f5..b4eaf39d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ -[pep8] -max-line-length = 320 \ No newline at end of file +[pycodestyle] +max-line-length = 320