We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal reproducer:
python -m venv clean source clean/bin/activate pip install solara[pytest]
then create test.py with:
test.py
def test_basic(page_session): pass
And run the tests with:
pytest test.py
this fails with:
@pytest.fixture(scope="session") def context_session( browser: "playwright.sync_api.Browser", browser_context_args: Dict, pytestconfig: Any, request: pytest.FixtureRequest, ) -> Generator["playwright.sync_api.BrowserContext", None, None]: from playwright.sync_api import Error, Page > from pytest_playwright.pytest_playwright import _build_artifact_test_folder E ImportError: cannot import name '_build_artifact_test_folder' from 'pytest_playwright.pytest_playwright' (/home/tom/tmp/debug/clean/lib/python3.11/site-packages/pytest_playwright/pytest_playwright.py) clean/lib/python3.11/site-packages/solara/test/pytest_plugin.py:66: ImportError
Downgrading to pytest-playwright 0.5 fixes this. It looks like some private API was removed?
The text was updated successfully, but these errors were encountered:
Duplicate of #913. I'm afraid for now the only solution is to pin either pytest-playwright or playwright.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Minimal reproducer:
then create
test.py
with:And run the tests with:
this fails with:
Downgrading to pytest-playwright 0.5 fixes this. It looks like some private API was removed?
The text was updated successfully, but these errors were encountered: