Skip to content

Conversation

tomwojcik
Copy link
Contributor

No description provided.

@tomwojcik tomwojcik self-assigned this Jul 28, 2025
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.67%. Comparing base (07c2671) to head (1d4bdd0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #893   +/-   ##
=======================================
  Coverage   98.66%   98.67%           
=======================================
  Files          27       27           
  Lines         902      908    +6     
=======================================
+ Hits          890      896    +6     
  Misses         12       12           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomwojcik tomwojcik requested a review from haxoza July 28, 2025 13:42
Copy link
Member

@haxoza haxoza left a comment

Choose a reason for hiding this comment

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

Overall looks good, just some minor comments.

response = self._get_view_response(request, provider="facebook")
assert response.status_code == status.HTTP_400_BAD_REQUEST

def test_post_facebook_provider_auth_unknown_error(self):
Copy link
Member

Choose a reason for hiding this comment

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

looks like the code for all 3 tests is the same, I would do a test generator or anything to decrease the amount of test code to read / maintain

request = self.factory.post("/auth/facebook/")
request.GET = data
response = self._get_view_response(request, provider="facebook")
assert response.status_code == status.HTTP_400_BAD_REQUEST
Copy link
Member

Choose a reason for hiding this comment

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

ditto

self.signal_sent = False
self.base_url = reverse("login")
@pytest.mark.django_db
class TestTokenCreateView:
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure why there is some inconsistency when it comes to grouping tests in classes like here, or not like in e.g. test_password_reset.py.

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.

2 participants