Rodja Trappe 2 年之前
父节点
当前提交
c0e2f10b9a
共有 3 个文件被更改,包括 0 次插入4 次删除
  1. 0 1
      tests/conftest.py
  2. 0 2
      tests/screen.py
  3. 0 1
      tests/test_3d_scene.py

+ 0 - 1
tests/conftest.py

@@ -11,7 +11,6 @@ if True:  # NOTE: prevent formatter from sorting the imports (nicegui must come
 
 from justpy.htmlcomponents import JustpyBaseComponent, WebPage
 from selenium import webdriver
-from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
 
 from .screen import Screen
 

+ 0 - 2
tests/screen.py

@@ -113,12 +113,10 @@ class Screen():
     @staticmethod
     def simplify_input_tags(soup: BeautifulSoup) -> None:
         for element in soup.find_all(class_="q-field"):
-            print(element.prettify())
             new = soup.new_tag('simple_input')
             name = element.find(class_='q-field__label').text
             placeholder = element.find(class_='q-field__native').get('placeholder')
             messages = element.find(class_='q-field__messages')
-            ic(messages)
             value = element.find(class_='q-field__native').get('value')
             new.string = (f'{name}: ' if name else '') + (value or placeholder or '') + \
                 (f' \u002A{messages.text}' if messages else '')

+ 0 - 1
tests/test_3d_scene.py

@@ -15,7 +15,6 @@ def test_moving_sphere_with_timer(screen: Screen):
         for i in range(20):
             try:
                 pos = screen.selenium.execute_script('return scene.children[4].position.y')
-                ic(pos)
                 if pos is not None:
                     return pos
             except JavascriptException: