From da5c1803296c98b860c25cf0dd6909a48205f0eb Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Mon, 17 Nov 2025 02:50:16 +0200 Subject: [PATCH] test: improve tox config --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 758939f..0109863 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,11 @@ deps = camoufox -r{toxinidir}/tests/requirements.txt extras = ai,shell +commands_pre = + # Install browsers in the tox virtual environment + python -m playwright install chromium + python -m playwright install-deps chromium firefox + python -m camoufox fetch --browserforge commands = # Run browser tests without parallelization (avoid browser conflicts) pytest --cov=scrapling --cov-report=xml -k "DynamicFetcher or StealthyFetcher" --verbose