def fail(abort_msg: str, msg_prefix: str, idx: Optional[int]) -> None:
for jdx, line in enumerate(lines_rendered[:idx], start=1):
def fail(abort_msg: str, msg_prefix: str, idx: Optional[int]) -> None:
for jdx, line in enumerate(lines_rendered[:idx], start=1):
- path = str(test_path.parts[-1]
- ).split('.', maxsplit=1)[1].replace('.', '/')
- page.goto(f'http://localhost:8084/{path}')
+ page.goto(f'http://localhost:{SERVER_PORT}/'
+ + str(test_path.parts[-1]).split('.', maxsplit=1
+ )[1].replace('.', '/'))
lines_rendered = page.content().split('\n')
with test_path.open('r', encoding='utf8') as f:
lines_expected = tuple(line.rstrip('\n')
lines_rendered = page.content().split('\n')
with test_path.open('r', encoding='utf8') as f:
lines_expected = tuple(line.rstrip('\n')
- Thread(target=f, args=(dat_path, server,)).start()
+ Thread(target=run_tests_on_dat, args=(dat_path, server,)).start()