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

Test fixtures refactor #6

Merged
merged 5 commits into from
Jul 26, 2024
Merged

Test fixtures refactor #6

merged 5 commits into from
Jul 26, 2024

Commits on Jul 25, 2024

  1. tests: mv setup* fixture

    Rename setup modules to fixture modules
    enku committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    1ac5191 View commit details
    Browse the repository at this point in the history
  2. tests: s/Setup/Fixture/g

    enku committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    e691968 View commit details
    Browse the repository at this point in the history
  3. tests: move fixture_types content to fixture

    The original reason for the split was to avoid circular imports, however
    this is no longer an issue.
    enku committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    1a02bb7 View commit details
    Browse the repository at this point in the history
  4. tests: handle contextmanager in the fixture run

    Instead of having fixture functions be decorated with @contextmanager,
    handle it from get_result, which will use is as a context manager if it
    is a generator function and get the result and add the tear down as
    appropriate.
    enku committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    e0c9781 View commit details
    Browse the repository at this point in the history
  5. tests: use TypeAlias for Fixtures instead of subclass

    I don't remember why I did it that way in the first place.
    enku committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    df98ad4 View commit details
    Browse the repository at this point in the history