Closed mrhassanfarooq closed 11 months ago
Updated. Please review
On Thu, 25 May 2023 at 1:54 PM, Sreekanth Reddy Balne < @.***> wrote:
@.**** requested changes on this pull request.
In tests/test_app/tests.py https://github.com/djangoflow/django-df-auth/pull/21#discussion_r1205205519 :
- with pytest.raises(ValidationError): assert serializer.is_valid(raise_exception=True)
with pytest.raises(ValidationError): serializer.is_valid(raise_exception=True)
In tests/test_app/tests.py https://github.com/djangoflow/django-df-auth/pull/21#discussion_r1205207831 :
- def test_validate_success(self):
- attrs = {
- 'username': 'test_user',
- 'password': 'test_password',
- }
- self.serializer.backend_method_name = ""
- with pytest.raises(AuthenticationFailed):
- self.serializer.validate(attrs)
I think a test to check what happens if a backend_method_name is not set, is required.
— Reply to this email directly, view it on GitHub https://github.com/djangoflow/django-df-auth/pull/21#pullrequestreview-1443403851, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TM4HUFVZTHJMGEGOGXYMLXH4M6BANCNFSM6AAAAAAX3PASYE . You are receiving this because you authored the thread.Message ID: @.***>
Hi Sreekanth, Can you please merge my code? Thank you
Best,
On Thu, May 25, 2023 at 5:47 AM Hassan Farooq @.***> wrote:
Updated. Please review
On Thu, 25 May 2023 at 1:54 PM, Sreekanth Reddy Balne < @.***> wrote:
@.**** requested changes on this pull request.
In tests/test_app/tests.py https://github.com/djangoflow/django-df-auth/pull/21#discussion_r1205205519 :
- with pytest.raises(ValidationError): assert serializer.is_valid(raise_exception=True)
with pytest.raises(ValidationError): serializer.is_valid(raise_exception=True)
In tests/test_app/tests.py https://github.com/djangoflow/django-df-auth/pull/21#discussion_r1205207831 :
- def test_validate_success(self):
- attrs = {
- 'username': 'test_user',
- 'password': 'test_password',
- }
- self.serializer.backend_method_name = ""
- with pytest.raises(AuthenticationFailed):
- self.serializer.validate(attrs)
I think a test to check what happens if a backend_method_name is not set, is required.
— Reply to this email directly, view it on GitHub https://github.com/djangoflow/django-df-auth/pull/21#pullrequestreview-1443403851, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TM4HUFVZTHJMGEGOGXYMLXH4M6BANCNFSM6AAAAAAX3PASYE . You are receiving this because you authored the thread.Message ID: @.***>
Hi, I have completed the changes and requested them to review on Git. Looking forward to hearing from you.
Thank you.
On Tue, May 16, 2023 at 5:37 AM Sreekanth Reddy Balne < @.***> wrote: