pytest-twisted icon indicating copy to clipboard operation
pytest-twisted copied to clipboard

test twisted code with pytest

Results 41 pytest-twisted issues
Sort by recently updated
recently updated
newest added
trafficstars

Ref https://github.com/pytest-dev/pytest-twisted/pull/75#discussion_r380495375 for the gory details, but I'll try to summarize, as there are a few similar yet distinct issues here. First... ## The Background 1. Twisted's `AsyncioSelectorReactor` uses `asyncio.get_event_loop`...

Currently, you must *call* ``pytest_twisted.async_fixture`` and ``pytest_twisted.async_yield_fixture``, and (until #74 fixes it) the readme demonstrates no-call semantics. I propose allowing this form by mimicking `pytest.fixtures`'s behavior, to improve consistency and...

https://github.com/pytest-dev/pytest-twisted/blob/16abc595c153de8f4ea78bf7b1de542a8d13f3e8/pytest_twisted.py#L104-L106 likewise for other test decorators

I have a fairly specific use case with my project: I'm using both Twisted (with asyncioreactor setup) and native asyncio awaits somewhat interchangeably, but when it came to testing, I've...

With everything in one file, being a module distribution (rather than package), and having only the readme as documentation I'm left a little unclear about what is 'public interface' and...

```python @pytest.mark.skip def test_async_fixture_module_scope(testdir, cmd_opts): test_file = """ from twisted.internet import reactor, defer import pytest import pytest_twisted check_me = 0 @pytest_twisted.async_yield_fixture(scope="module") async def foo(): global check_me if check_me != 0:...

https://ci.appveyor.com/project/pytestbot/pytest-twisted - [x] Build badge - [ ] GitHub required checks

Here's how pytest does it: https://github.com/pytest-dev/pytest/blob/a4c426b1a891a22ae1b63d0a0fa2dcdf690e69db/.travis.yml#L61-L75