add comment to conftest
This commit is contained in:
parent
cde80e5110
commit
d5b9eda7b1
1 changed files with 28 additions and 0 deletions
28
src/tests_wordpress/conftest.py
Normal file
28
src/tests_wordpress/conftest.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# this conftest cannot be executed directly if there is a second conftest
|
||||
# on a higher level. might work if other tests are executed though
|
||||
# -> at least bad for debugging
|
||||
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from playwright.sync_api import Browser, Locator, expect, sync_playwright
|
||||
|
||||
# playwright = sync_playwright().start()
|
||||
# browser = playwright.chromium.launch(headless=False)
|
||||
|
||||
|
||||
cred_file = Path("../credentials.json")
|
||||
with open(cred_file, "r") as f:
|
||||
CREDENTIALS = json.load(f)
|
||||
|
||||
print(CREDENTIALS)
|
||||
|
||||
RECORDS = Path("records")
|
||||
RECORDS.mkdir(exist_ok=True)
|
||||
STATES = Path("states")
|
||||
STATES.mkdir(exist_ok=True)
|
||||
|
||||
|
||||
def test_dummy():
|
||||
assert 1 + 1 == 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue