-
In https://github.com/aiidalab/aiidalab-widgets-base/pull/509, the warnings are shown as errors, and will popped up if run with `pytest -s`.
Here is one that we don't know how to get rid of:
```…
-
The following code fails with a misleading error message:
```python
%%run_pytest[clean]
import pytest
@pytest.mark.parameterize('test_input,expected', [("3+5", 8)])
def test_eval(test_input, …
-
When setting a timeout value in `DATABASES` (which is required to avoid `TransactionManagementError` with sqlite), a `KeyError` is raise inside pytest-django. More specifically, I set
```
DATABAS…
-
TL;DR: Only sync tests capture logs, not async.
Desired behavior: Async captures logs too.
Impact: Logs are critical test data. However this is the only solution I can find in the entire Pytho…
-
### 🛠 Proposed Refactor
Each test file in `test/explain` has it's own data fixtures and prediction model definitions. This results in a lot of duplication and increased potential for mistakes.
###…
-
We are using unittest as our main framework currently. However, as we move to data platform workflows, we can get a lot of advantages moving it to pytest instead.
One important point raised by @ca…
-
See https://docs.pytest.org/en/6.2.x/fixture.html#scope-sharing-fixtures-across-classes-modules-packages-or-session
tl;dr
Add a file `CI/conftest.py` and put all repeated fixtures there. They wi…
-
A complete restructuring of pytest's documentation in line with https://diataxis.fr. See [pytest-dev email list discussion](https://mail.python.org/pipermail/pytest-dev/2021-February/005042.html).
…
-
pytest version 5.2.2
Tried to use dynamic scopes for fixtures. However, the scope definition is executed only once - during the fixture definition.
We would like to have option to control fixture …
-
- o que é
- vantagem sobre unittest
- configuração
- como rodar
- async
- fixtures
- conftest
- flags (e.g. pytest -k)