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

plugin: add mh_fixture #57

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Commits on Jun 3, 2024

  1. plugin: add mh_fixture

    It is not possible to access topology fixtures from pytest fixture.
    This adds a wrapper to workaround that.
    
    ```
    @mh_fixture()
    def my_fixture(client: Client, request: pytest.FixtureRequest):
        pass
    
    @pytest.mark.topology(KnownTopology.LDAP)
    def test_example(client: Client, ldap: LDAP, my_fixture):
        pass
    ```
    pbrezina committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    43d32e1 View commit details
    Browse the repository at this point in the history