Skip to content

Add shared test fixtures and helper functions - #76

Open
lforchini wants to merge 1 commit into
test/refactor-config-loadingfrom
test/test-utils
Open

lforchini wants to merge 1 commit into
test/refactor-config-loadingfrom
test/test-utils

Conversation

@lforchini

Copy link
Copy Markdown
Owner

Create a fixture which hooks into the custom-prefixed Path system, but
doesn't require an env var to control it. Instead, unit tests can create
a MockDir which will then act as the path prefix.

It should still allow for multiple tests to be run at the same time as
a thread_local is used to store the prefix.

Signed-off-by: Leonardo Forchini leonardo.forchini@nutanix.com


Stack created with GitHub Stacks CLI • Give Feedback 💬

@lforchini
lforchini added this pull request to stack #83 October 1, 2026 13:46
Create a fixture which hooks into the custom-prefixed Path system, but
doesn't require an env var to control it. Instead, unit tests can create
a MockDir which will then act as the path prefix.

It should still allow for multiple tests to be run at the same time as
a thread_local is used to store the prefix.

Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
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