Skip to content

make all fixtures to be function scoped #91

@skshetry

Description

@skshetry

We should provide function scoped by default for correctness, and we can offer fixtures with a different scope if needed.

Ideally, it'd look something like this:

def s3_server_impl():
   yield MockedS3Server()

@pytest.fixture():
def s3_server():
   yield s3_server_impl()

@pytest.fixture(scope="session"):
def session_s3_server():
   yield s3_server_impl()

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions