Skip to content

Commit 1fbdb9c

Browse files
authored
Merge pull request #7 from eadwinCode/ci_fix
Failing Test
2 parents 0e3bf95 + 2e27581 commit 1fbdb9c

File tree

3 files changed

+5
-32
lines changed

3 files changed

+5
-32
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

ninja_jwt/schema.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,8 @@ def validate_inputs(cls, values: Dict) -> dict:
4747

4848
if not values.get("password"):
4949
raise exceptions.ValidationError({"password": "password is required"})
50-
return values
51-
52-
@root_validator
53-
def validate_schema(cls, values: Dict) -> dict:
54-
authenticate_kwargs = {
55-
user_name_field: values[user_name_field],
56-
"password": values["password"],
57-
}
5850

59-
cls._user = authenticate(**authenticate_kwargs)
51+
cls._user = authenticate(**values)
6052

6153
if not api_settings.USER_AUTHENTICATION_RULE(cls._user):
6254
raise exceptions.AuthenticationFailed(

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ test = [
6464
"pytest",
6565
"pytest-cov",
6666
"pytest-django",
67-
"black",
68-
"isort",
69-
"flake8",
70-
"mypy",
67+
"pytest-asyncio",
68+
"black==21.12b0",
69+
"isort==5.10.1",
70+
"flake8==4.0.1",
7171
"django-stubs",
7272
"python-jose==3.0.0"
7373
]

0 commit comments

Comments
 (0)