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

Fixes state leak between tests #12914

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

marcusmoore
Copy link
Collaborator

Description

I noticed that running the test case included in #12887 in isolation works as expected but there is some state leaking that causes failures when running the entire test suite. This PR switches from using the admin to the superuser state on the user factory which fixes the issue.

I'll investigate the issue with the admin state in the future.

Type of change

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

@what-the-diff
Copy link

what-the-diff bot commented Apr 25, 2023

PR Summary

  • Change in user factory settings
    Switched from admin to superuser for better access control
  • Updated tests for user activation and deactivation
    Improved test coverage for user status changes

@snipe snipe merged commit 705bb73 into snipe:develop Apr 26, 2023
4 checks passed
@marcusmoore marcusmoore deleted the fixes/fix-test-cases branch April 26, 2023 16:48
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