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

Clear the settings cache on app destruction #12954

Merged
merged 3 commits into from
May 1, 2023

Conversation

marcusmoore
Copy link
Collaborator

Description

This PR gets the test suite back to green by adding the InteractsWithSettings trait to some unit tests that expect settings to be initialized. (A recent PR moved some logic that relies on the app's currency to model setters and getters)

In addition, I added a hook to clear the settings cache in between tests to avoid leaking state.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@what-the-diff
Copy link

what-the-diff bot commented May 1, 2023

PR Summary

  • Add InteractsWithSettings trait to various test classes
    The InteractsWithSettings trait was added to AssetMaintenanceTest, AssetModelTest, AssetTest, CategoryTest, and Component test classes to resolve failing tests caused by a missing setUpSettings() method.

@snipe snipe merged commit 63af17d into snipe:develop May 1, 2023
3 checks passed
@marcusmoore marcusmoore deleted the fixes/test-suite-fixes branch May 1, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants