diff tests/e2e/libervia-web/test_libervia-web.py @ 4305:4cd4922de876

tests: reformat tests using black.
author Goffi <goffi@goffi.org>
date Thu, 26 Sep 2024 16:11:56 +0200
parents dfccc90cacc6
children
line wrap: on
line diff
--- a/tests/e2e/libervia-web/test_libervia-web.py	Fri Sep 06 18:07:44 2024 +0200
+++ b/tests/e2e/libervia-web/test_libervia-web.py	Thu Sep 26 16:11:56 2024 +0200
@@ -44,7 +44,7 @@
 if os.getenv("LIBERVIA_TEST_ENV_E2E_WEB") is None:
     pytest.skip(
         "skipping end-to-end tests, we are not in a test environment for Libervia",
-        allow_module_level=True
+        allow_module_level=True,
     )
 
 pytestmark = pytest.mark.usefixtures("test_profiles", "screenshot_on_failure")
@@ -111,9 +111,9 @@
         wait_until(lambda: S("#file_drop").exists())
         wait_until(lambda: not S("#loading_screen").exists())
         drag_file("/src/libervia-backend/tests/_files/test_1.jpg", "drop photos here")
-        wait_until(lambda: len(find_all(S("div.progress_finished")))==1)
+        wait_until(lambda: len(find_all(S("div.progress_finished"))) == 1)
         drag_file("/src/libervia-backend/tests/_files/test_2.jpg", "drop photos here")
-        wait_until(lambda: len(find_all(S("div.progress_finished")))==2)
+        wait_until(lambda: len(find_all(S("div.progress_finished"))) == 2)
         assert S('img[alt="test_1.jpg"]').exists()
         assert S('img[alt="test_2.jpg"]').exists()
 
@@ -133,8 +133,7 @@
         active_slide_1_elt = active_slide_1.web_element
         click(S(".swiper-button-next"))
         wait_until(
-            lambda:
-            "swiper-slide-active" not in active_slide_1_elt.get_attribute("class")
+            lambda: "swiper-slide-active" not in active_slide_1_elt.get_attribute("class")
         )
         active_slide_2 = S("div.swiper-slide-active")
         assert active_slide_2.exists()
@@ -149,7 +148,9 @@
         assert Text("Unauthorized").exists()
         assert "Error" in get_driver().title
 
-    @pytest.mark.dependency(name="invite_ext_user", depends=["create_album", "ext_user_no_access"])
+    @pytest.mark.dependency(
+        name="invite_ext_user", depends=["create_album", "ext_user_no_access"]
+    )
     def test_invitation_of_external_user(self, log_in_account1):
         """User can invite somebody not in its roster by its full JID"""
         go_to(self.TEST_ALBUM_URL)
@@ -212,7 +213,6 @@
         click("create list")
         wait_until(Text("Success").exists)
 
-
     @pytest.mark.dependency(
         name="create_generic_list_item", depends=["create_generic_list"]
     )