Skip to content

Permit variable-level scopes for client fixture.#970

Open
faelin wants to merge 1 commit intodbfixtures:mainfrom
faelin:patch-1
Open

Permit variable-level scopes for client fixture.#970
faelin wants to merge 1 commit intodbfixtures:mainfrom
faelin:patch-1

Conversation

@faelin
Copy link

@faelin faelin commented Jun 17, 2024

Sometimes a user might not want the client fixture to be function-scoped. For example, another fixture may rely on the connection info of the client, such as port-number, and might want that data to remain static throughout a session, or might need that data in a session-scoped fixture.

Chore that needs to be done:

  • Add newsfragment pipenv run towncrier create [issue_number].[type].rst

Types are defined in the pyproject.toml, issue_number either from issue tracker or the Pull request number

Sometimes a user might not *want* the client fixture to be function-scoped. For example, another fixture may rely on the connection info of the client, such as port-number, and might want that data to remain static throughout a session, or might need that data in a session-scoped fixture.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant