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

🐛 [#2143] Show all categories to staff users #1046

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

stevenbal
Copy link
Contributor

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b0a1d1e) 94.91% compared to head (0533581) 94.91%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1046   +/-   ##
========================================
  Coverage    94.91%   94.91%           
========================================
  Files          882      882           
  Lines        30792    30801    +9     
========================================
+ Hits         29227    29236    +9     
  Misses        1565     1565           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Bartvaderkin Bartvaderkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability would improve in cases like this if we don't use random numbered variables but give the categories useful names, like category_anonymous, category_all, category_citizens, category_companies so the test itself is meaningful and you don't have to go back and forth to the setup to read the tests.

And optional note: this test file looks pretty old, can we update it? There are unusual user setups in the setUpTestData(), with passwords and custom email and manual self.client.login(email=self.user.email, password="12345").

That is all irrelevant to the test, and passwords are actually already set in the factory 😦 The more recent tests just create an appropriate user right there in the test and do a force_login.

@stevenbal stevenbal merged commit d57cca2 into develop Feb 26, 2024
15 checks passed
@stevenbal stevenbal deleted the fix/2143-categories-for-admins branch February 26, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants