Skip to content
New issue

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

Synchronize async fixtures dynamically #669

Closed

Commits on Nov 10, 2023

  1. [feat!] Replaced the asyncio_event_loop marker with an optional "scop…

    …e" kwarg to the asyncio mark.
    
    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    314020c View commit details
    Browse the repository at this point in the history
  2. [feat] Add support for package-scoped loops.

    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    d35c24d View commit details
    Browse the repository at this point in the history
  3. [docs] Link to auto mode concept from marker reference.

    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    b851d05 View commit details
    Browse the repository at this point in the history
  4. [feat] Add support for session-scoped event loops.

    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    bfb10a0 View commit details
    Browse the repository at this point in the history
  5. [feat!] Requesting the "event_loop" fixture in an async fixture will …

    …raise a pytest.UsageError.
    
    This is a follow-up to the previous deprecation of event_loop fixture requests in async fixtures and tests.
    The change allows cleaning up the fixture synchronization code, so that the synchronization will eventually become independent of the fixture providing the asyncio event loop.
    
    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    f028ac1 View commit details
    Browse the repository at this point in the history
  6. [refactor] Fixture synchronizers use the existing event loop rather t…

    …han the value provided by the event loop fixture.
    
    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    9286c5f View commit details
    Browse the repository at this point in the history
  7. [feat!] Fixture synchronizers no longer depend on a fixture providing…

    … an event loop.
    
    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    bd29f2b View commit details
    Browse the repository at this point in the history
  8. [refactor] Simplified code in _inject_fixture_argnames.

    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    cb9953a View commit details
    Browse the repository at this point in the history
  9. [refactor] Synchronize fixtures in pytest_fixture_setup rather than i…

    …n _preprocess_async_fixtures.
    
    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    e801947 View commit details
    Browse the repository at this point in the history
  10. [refactor] The UsageError regarding explicit requests of the event_lo…

    …op fixture in async fixtures is issue during fixture setup rather than during collection time.
    
    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    4b9b1f2 View commit details
    Browse the repository at this point in the history
  11. [refactor] Removed obsolete preprocessing of async fixtures.

    Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
    seifertm committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    cc1ee5b View commit details
    Browse the repository at this point in the history