pyup.io bot
119df8c61b
Update black to 23.1.0 ( #4120 )
...
* Update black from 22.12.0 to 23.1.0
* Update black from 22.12.0 to 23.1.0
* Update code style according to newer version of black
* Update black pre-commit hook (#4122 )
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
2023-02-02 11:25:41 +00:00
Bruno Alla
9db2752598
Upgrade to Django 4.0 ( #3848 )
2022-10-19 20:01:43 +01:00
Dani Hodovic
122ebfc3a8
Simplify database access in tests ( #3807 )
2022-07-26 23:44:34 +01:00
github-actions[bot]
419f6b0e87
Auto-update pre-commit hooks ( #3780 )
...
* Auto-update pre-commit hooks
* Run 'pre-commit run -a'
* Fix pyupgrade into generated project
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2022-07-26 23:37:02 +01:00
Andrew Chen Wang
c7a8b6498c
Update view test should set user to form instance ( #3776 )
2022-07-22 00:09:12 +01:00
Bruno Alla
cf6fc443bb
Fix type error
2022-06-04 14:49:26 -03:00
ghazi-git
c22f2c7e9e
Fix Swagger schema API endpoint & add a test for it ( #3592 )
...
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-02-16 12:25:32 +00:00
Vikas Yadav
721b86723c
Add swagger API documentation when DRF is enabled ( #3536 )
...
* Adds swagger api documentation when drf is enabled
Changes
* Integrate drf-spectacular module
* Added routes and tests for swagger-ui
* Removes swagger ui tests when drf is not enabled
* Changes url names and documentation title
* Apply suggestions from code review
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
* Fixes typos and linting issues
* Update domain in swagger description
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-01-19 18:14:36 +00:00
mpoli
9f8820241f
Add UserSignupForm and UserSocialSignupForm ( #3515 )
...
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2022-01-13 18:38:35 +00:00
Will Gordon
785df85c4d
Hides 'sign up' elements when ACCOUNT_ALLOW_REGISTRATION is disabled ( #1914 )
...
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-12-27 11:37:33 +00:00
pyup.io bot
70329ecb01
Update django-stubs to 1.9.0 ( #3439 )
...
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-11-30 11:13:53 +00:00
Arnav Choudhury
0790929e7e
Add an assertion to fix mypy type error ( #3150 )
...
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2021-11-25 18:10:33 +00:00
Bruno Alla
315ead02e4
Upgrade to Django 3.2 ( #3425 )
...
* Upgrade to Django 3.2
* Set DEFAULT_AUTO_FIELD setting
* Use auto AppConfig discovery for users app
2021-11-24 08:05:53 +00:00
Dani Hodovic
8483bbbdf2
refactor: remove user API methods parameter
...
`methods` defaults to ["GET"] if not specified. There is no need to
explicitly set this in the action.
71e6c30034/rest_framework/decorators.py (L145)
2021-11-08 21:08:32 +01:00
Dalton Rardin
00ff825b8c
Add djangorestframework-stubs
...
Add djangorestframework-stubs to local.txt requirements
Modify setup.cfg to add stubs to mypy settings
Fix new type error in DRF
`./users/api/views.py:19: error: Incompatible type for lookup 'id': (got "Union[AutoField[Union[Combinable, int, str], int], Any]", expected "Union[str, int]")`
by asserting that `self.request.user.id` is an int
2021-10-11 20:41:32 -05:00
Fabio C. Barrionuevo da Luz
d76fe09163
Replaced ugettext_lazy by gettext_lazy
2021-05-15 21:37:03 -03:00
Bruno Alla
ea84b6ccab
Merge branch 'master' into update_tests_deprecation
...
# Conflicts:
# {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_views.py
2021-04-08 18:47:47 +01:00
Arnav Choudhury
1371d6a3e6
Reverting the use of get_absolute_url method in getting the detail view url. Purpose was to test if the url could be created correctly and not if the view was working correctly.
2021-03-04 19:34:58 +05:30
Arnav Choudhury
fa0b278225
Updated test_urls and views to re-use User.get_absolute_url method instead of using reverse on the user:detail view
2021-02-26 12:04:48 +05:30
Andrew Chen Wang
8aeee881bb
Remove email from User API Test
2021-02-16 18:35:47 -05:00
Andrew Chen Wang
17499a12c9
Remove email from User API
2021-02-16 18:33:27 -05:00
Bruno Alla
e5bc9af44c
Merge pull request #3041 from arnav13081994/update_test_case
2021-02-06 17:07:00 +00:00
Arnav Choudhury
352232f617
Fixed Formatting Issues.
2021-02-05 09:55:30 +05:30
Arnav Choudhury
47768d495f
Refactored test_views to test only the required characteristics of the UserCreationForm.
2021-02-05 09:47:06 +05:30
Arnav Choudhury
3cf7e74a77
Removed unused Http404 import.
2021-02-04 15:54:26 +05:30
Arnav Choudhury
fc8e2ea8a2
Removed unnecessary test for username case sensitivity since django usernames are case sensitive by default. Also made the redirecting to the login url more dynamic by fetching the defined login_url from settings
2021-02-04 15:28:08 +05:30
Arnav Choudhury
08334ba979
Fixed the Middleware deprecation warnings by creating a dummy response function.
2021-02-02 13:19:27 +05:30
Arnav Choudhury
e8996ef281
Updated the test_clean_username test to also test for the custom validation message raised in case username already exists in the db
2021-01-30 11:41:16 +05:30
Arnav Choudhury
0a241a8f75
Updated test_forms.py to not check whether UserCreationForm has a clean_username() method
2021-01-29 22:16:11 +05:30
Arnav Choudhury
e0cf956fe2
Refactored users.forms to make the code more readeable
2021-01-29 17:55:10 +05:30
Bruno Alla
d62ad403a4
Merge pull request #3018 from Andrew-Chen-Wang/patch-6
2021-01-26 18:51:00 +00:00
Arnav Choudhury
125f1a8afe
Fixing Formatting issues
2021-01-26 10:34:18 +05:30
Arnav Choudhury
d358fc948d
Using SuccessMessageMixin to pass the message to django template instead of overriding form_valid
2021-01-26 09:56:24 +05:30
Bruno Alla
d12d01d325
Fix mypy error
2021-01-25 22:13:19 +00:00
Bruno Alla
37e0d6ae04
Add test for the UserAdmin
2021-01-25 21:55:14 +00:00
Bruno Alla
d1409e2fb3
Missing import
2021-01-25 21:08:33 +00:00
Andrew Chen Wang
cbb3cdb2b1
Update admin to ignore *_name User attributes
...
Fixes #3016
2021-01-25 11:20:34 -05:00
Bruno Alla
42f33527c5
Refactor test
2021-01-24 15:17:01 +00:00
Bruno Alla
e293d8c00e
Merge pull request #2949 from thorrak/add_test
2021-01-24 15:08:22 +00:00
Bruno Alla
aee2559d4f
Merge pull request #2998 from Andrew-Chen-Wang/patch-6
2021-01-24 14:26:23 +00:00
Bruno Alla
23c7616bd4
Merge pull request #2986 from pydanny/pyup-update-factory-boy-3.1.0-to-3.2.0
2021-01-24 14:25:16 +00:00
Bruno Alla
b7c95f6eed
Update factory-boy's .generate to evaluate
...
Co-Authored-By: Timo Halbesma <timo@halbesma.com>
2021-01-24 14:20:39 +00:00
Andrew Chen Wang
3cbd840a96
Use self.request.user instead of second query
2021-01-21 19:02:01 -05:00
Andrew Chen Wang
5809eabb31
Ignore typing override in name removals
2021-01-07 22:39:18 -05:00
Andrew Chen Wang
2f416f9057
Remove first_name and last_name from migrations
2021-01-07 22:30:27 -05:00
Andrew Chen Wang
dce3144b39
Omit first_name and last_name in User model
2021-01-07 22:27:50 -05:00
Thorrak
ed69df4403
Change test to iterate through messages instead of accessing _queued_messages directly
2020-11-26 11:23:46 -05:00
Thorrak
894dbce645
Add test for users.form_valid
...
Ensures that the message is added to the request when a form is submitted
2020-11-26 10:17:20 -05:00
Thorrak
d2ec1eca12
Fix typo in message
2020-11-26 10:15:04 -05:00
umgelurgel
9f3117c615
Upgrade factory-boy to 3.1.0
2020-11-12 18:53:29 +01:00