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

Fix flaky test_initialise_azure_file_provider_with_default_credential #2530

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Jun 25, 2024

Tracking issue

NA

Why are the changes needed?

This test is flaky. Seems like os.env was overridden by other tests

The @mock.patch.dict decorator patches the dictionary in place, while the with @mock.patch.dict decorator creates a temporary copy of the dictionary and patches that.

What changes were proposed in this pull request?

Use with mock.patch.dict instead

How was this patch tested?

unit test

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

NA

Docs link

NA

@eapolinario eapolinario merged commit 907a4cb into master Jun 25, 2024
42 of 46 checks passed
bgedik pushed a commit to bgedik/flytekit that referenced this pull request Jul 3, 2024
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
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.

3 participants