mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-10 13:46:35 +00:00
* fix(@wallet_manage_accounts_test): fix test for watched address * Start squish server on new port --------- Co-authored-by: Vladimir Druzhinin <vlado@status.im>
25 lines
614 B
Python
25 lines
614 B
Python
import allure
|
|
import pytest
|
|
|
|
from driver.server import SquishServer
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
|
def start_squish_server():
|
|
squish_server = SquishServer()
|
|
squish_server.stop()
|
|
attempt = 3
|
|
while True:
|
|
try:
|
|
squish_server.start()
|
|
break
|
|
except AssertionError as err:
|
|
attempt -= 1
|
|
if not attempt:
|
|
pytest.exit(err)
|
|
yield squish_server
|
|
squish_server.stop()
|
|
if squish_server.config.exists():
|
|
allure.attach.file(str(squish_server.config), 'Squish server config')
|
|
squish_server.config.unlink()
|