-
I've been happily using pytest for several projects for the past few years.
There's one part about pytest that I still struggle to get behind: The way that fixtures magically match argument names t…
-
**Describe the bug**
Your README requires pytest>=4.6. Installation only succeeded for pytest
* pylint: 3.2.3
* pytest: 8.2.0
* pylint-pytest: 1.1.8
(add any relevant pylint/pytest plugin her…
-
Change the unit test system to pytest with it's easy fixture system to replace the current json fixtures.
* Consider using [pytest-django](https://pytest-django.readthedocs.io/en/latest/configuring…
jelly updated
5 years ago
-
I am trying to use parameterized fixture in my pytest-bdd framework. Normal fixture works fine. But If I am passing parameters, it gives below error
""The requested fixture has no parameter define…
-
In Scenario 6, it's possible to run custom events:
```python
ctx = Context(...)
state_in = scenario.State()
state_out = ctx.run("my_charm_lib.on.foo", state_in)
assert state_out...
```
In S…
-
This is maybe not a bug exactly but it is annoying. When building sphinx we get the following warnings:
pytest:
```
.tox/py37-extensive/lib/python3.7/site-packages/_pytest/fixtures.py:228
…
-
## Describe the bug
The 6.0.0 sdist (after switch to hatchling) no longer contains the `docs` folder. Besides losing the ability to build docs, this also causes tests to fail now.
## To Reproduce
…
-
I'm copying tests from growler-mako into my extension, so it's probably a good idea to eventually consolidate common fixtures into a pytest plugin at some future point.
-
for loading fixtures for tests (using pytest):
```
@fixture
def root_path():
if 'TEST_SRCDIR' in os.environ:
return os.environ['TEST_SRCDIR'] + "/" + os.environ[
'TEST_…
-
I'm pretty sure it's possible if we're willing to use greenlet.
Here's a sketch that's missing important details like exception propagation.
Hook pytest_runtest_loop to keep a Trio event loop ru…