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

Test Technical user mixed tech and core users #55

Merged
merged 3 commits into from Feb 8, 2022
Merged

Conversation

edarchis
Copy link
Member

This requires an update of the core for the test helper.

The if not User.objects.filter(username='admin').exists(): was creating a technical user and then fetching a core user with the same username. Instead of just creating the core user, I added a test helper for technical (super) users and this works a lot better.

The main project had many test failures because of this.

This requires an update of the core for the test helper
The "is not" notation shouldn't be used with string literals.
This was showing warnings in the console when running the tests.
@lgtm-com
Copy link

lgtm-com bot commented Jan 13, 2022

This pull request fixes 4 alerts when merging 3b21e82 into cb011f2 - view on LGTM.com

fixed alerts:

  • 4 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Jan 14, 2022

This pull request fixes 4 alerts when merging 75ab6c3 into cb011f2 - view on LGTM.com

fixed alerts:

  • 4 for Unused import

@delcroip delcroip merged commit 8b2fe58 into develop Feb 8, 2022
@delcroip delcroip deleted the fix_test_user branch April 25, 2022 14:36
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.

None yet

2 participants