Browse Source

try to fix test

Rodja Trappe 2 years ago
parent
commit
93d8ba7c4b
1 changed files with 1 additions and 6 deletions
  1. 1 6
      tests/test_auto_context.py

+ 1 - 6
tests/test_auto_context.py

@@ -39,12 +39,7 @@ def test_adding_elements_with_async_await(screen: Screen):
 
     screen.open('/')
     for i in range(40):
-        if not '''
-card
-  A
-card
-  B
-''' in screen.render_content():
+        if not '''card\n  A\ncard\n  B''' in screen.render_content():
             screen.wait(0.1)
         else:
             raise AssertionError(f'{screen.render_content()} should show cards with "A" and "B"')