From ab32edc91417ac3f72f9c92de308a5b393d0a0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Cl=C3=A9rice?= <1929830+PonteIneptique@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:58:31 +0100 Subject: [PATCH] Update test_corpus_init.py --- tests/test_selenium/test_corpus_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_selenium/test_corpus_init.py b/tests/test_selenium/test_corpus_init.py index 23e7fbef..efa7c17e 100644 --- a/tests/test_selenium/test_corpus_init.py +++ b/tests/test_selenium/test_corpus_init.py @@ -604,6 +604,7 @@ def test_registration_without_field_length_violation(self): self.assertFalse(self.driver_find_elements_by_css_selector(".alert.alert-danger")) def test_corpus_name_unique_user(self): + """ Test that a single user can have twice the same name (even if weird)""" self.add_control_lists() self.add_user("foo", "foo") self.login("%s.%s@ppa.fr" % ("foo", "foo"), self.app.config['ADMIN_PASSWORD']) @@ -614,7 +615,6 @@ def test_corpus_name_unique_user(self): self.driver_find_element_by_id("corpusName").send_keys("Wauchier") self.driver_find_element_by_id("label_checkbox_reuse").click() self.driver_find_element_by_id("control_list_select").click() - self.driver.get_screenshot_as_file("/home/jjanes/Documents/pyrrha/img1.png") self.writeMultiline( self.driver_find_element_by_id("tokens"), f"form\tlemma\tPOS\tmorph\nSOIGNORS\tseignor\tNOMcom\tNOMB.=p|GENRE=m|CAS=n"