Comments (3)
and that made the following command work for me:
python3 -m pytest --rootdir=. -c tools/pytest.ini --collect-only -q webdriver/tests/bidi/**/*.py
Note pytest
has significantly different behaviour when arguments (specifying files) are passed, which changes, among other things, how it finds the initial conftest.py
.
This is a significance difference to my command in the original issue.
from wpt.
Note that prepend
works if we add __init__.py
files all the way up, because we then end up importing unique module names.
from wpt.
I tried to do pytest --collect-only recently and the following workaround worked for me:
To webdriver/tests/__init__.py
I have added:
import os
from tools.wpt.utils import load_source
here = os.path.dirname(__file__)
localpaths = load_source("localpaths", os.path.abspath(os.path.join(here, os.pardir, os.pardir, "tools", "localpaths.py"))) # type: ignore
and that made the following command work for me:
python3 -m pytest --rootdir=. -c tools/pytest.ini --collect-only -q webdriver/tests/bidi/**/*.py
Normally localpaths are imported in another place that pytest does not know about. This is the output I got https://gist.github.com/OrKoN/e000e32f132db86c102cc35f12fd5852
from wpt.
Related Issues (20)
- CSS animation test flakiness specific to Chrome for Testing (Dev & Canary) HOT 1
- ./wpt serve fails with Python 3.12 (default on fedora39) HOT 2
- Trusted types tests timeout in failure case HOT 1
- `./wpt run firefox` runs Firefox release instead of Nightly HOT 3
- [wdspec] add fixture to wait for several WebDriver BiDi events HOT 8
- XColumns class in anchor test?
- Passing a basename (alone) to manifest.load_and_update causes a FileNotFoundError
- paint-context-001.svg has incorrect expectation
- Chrome and Firefox are not installed with `--install-browser` flag for integration tests
- Race condition in css-contain/container-queries/font-relative-units-dynamic.html for `cap` & `rcap`?
- Trouble following "Chrome for Android" documentation
- Phuoc Nguyen
- update-expectations using fallback HOT 4
- html-aam/roles-contextual.html includes scenario that is recommended against by html-aria spec HOT 1
- `ImageData(buffer, w, opt h), Uint8ClampedArray argument type check` test fails for all browsers HOT 1
- Tests that compete for globally shared resources are flaky when run in parallel HOT 2
- Wrong expectations for percentage interpolation in text-decoration-thickness-interpolation.html
- `text-indent` does not affect the selected file label for file inputs
- pointerrawupdate is expected not to work in non-secure contexts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wpt.