forked from retoor/devplacepy
chore: remove pytest-xdist parallel test infrastructure and switch to serial execution
This commit is contained in:
+1
-12
@@ -12,18 +12,7 @@ PROJECT_ROOT = Path(__file__).resolve().parent.parent
|
||||
SCREENSHOT_DIR = Path("/tmp/devplace_test_screenshots")
|
||||
|
||||
|
||||
def _xdist_port():
|
||||
wid = os.environ.get("PYTEST_XDIST_WORKER", "master")
|
||||
if wid == "master":
|
||||
return 10501
|
||||
try:
|
||||
idx = int(wid.replace("gw", ""))
|
||||
return 10501 + idx
|
||||
except (ValueError, AttributeError):
|
||||
return 10501
|
||||
|
||||
|
||||
PORT = _xdist_port()
|
||||
PORT = 10501
|
||||
BASE_URL = f"http://127.0.0.1:{PORT}"
|
||||
|
||||
_TEST_DB = tempfile.NamedTemporaryFile(suffix=f"_{PORT}.db", delete=False)
|
||||
|
||||
Reference in New Issue
Block a user