Skip to content

Commit

Permalink
fixes testIssue38 async unittest behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Dec 19, 2022
1 parent 7684799 commit 319f44e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_issue38.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,23 @@
@author: th
"""
import asyncio
import unittest

from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC

import justpy as jp
from tests.base_selenium_test import BaseSeleniumTest



class TestIssue38(BaseSeleniumTest):
"""
testing issue 38
https://github.com/justpy-org/justpy/issues/38
"""

async def setUp(self):
await BaseSeleniumTest.setUp(self,port=8124)
async def asyncSetUp(self):
await BaseSeleniumTest.asyncSetUp(self,port=8124)

async def tearDown(self):
async def asyncTearDown(self):
self.browser.close()
await asyncio.sleep(self.server.sleep_time)
await self.server.stop()
Expand Down

0 comments on commit 319f44e

Please sign in to comment.