mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 03:24:01 +03:00
Merge pull request #2596 from pydanny/pyup-update-flake8-3.7.9-to-3.8.1
This commit is contained in:
commit
1c630c3a77
|
@ -5,7 +5,7 @@ binaryornot==0.4.4
|
||||||
# Code quality
|
# Code quality
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
black==19.10b0
|
black==19.10b0
|
||||||
flake8==3.7.9
|
flake8==3.8.1
|
||||||
flake8-isort==3.0.0
|
flake8-isort==3.0.0
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
|
|
|
@ -156,7 +156,7 @@ def test_flake8_passes(cookies, context_override):
|
||||||
result = cookies.bake(extra_context=context_override)
|
result = cookies.bake(extra_context=context_override)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sh.flake8(str(result.project))
|
sh.flake8(_cwd=str(result.project))
|
||||||
except sh.ErrorReturnCode as e:
|
except sh.ErrorReturnCode as e:
|
||||||
pytest.fail(e.stdout.decode())
|
pytest.fail(e.stdout.decode())
|
||||||
|
|
||||||
|
@ -167,7 +167,9 @@ def test_black_passes(cookies, context_override):
|
||||||
result = cookies.bake(extra_context=context_override)
|
result = cookies.bake(extra_context=context_override)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sh.black("--check", "--diff", "--exclude", "migrations", f"{result.project}/")
|
sh.black(
|
||||||
|
"--check", "--diff", "--exclude", "migrations", _cwd=str(result.project)
|
||||||
|
)
|
||||||
except sh.ErrorReturnCode as e:
|
except sh.ErrorReturnCode as e:
|
||||||
pytest.fail(e.stdout.decode())
|
pytest.fail(e.stdout.decode())
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ repos:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.7.9
|
rev: 3.8.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args: ['--config=setup.cfg']
|
args: ['--config=setup.cfg']
|
||||||
|
|
|
@ -21,7 +21,7 @@ pytest-sugar==0.9.3 # https://github.com/Frozenball/pytest-sugar
|
||||||
|
|
||||||
# Code quality
|
# Code quality
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
flake8==3.7.9 # https://github.com/PyCQA/flake8
|
flake8==3.8.1 # https://github.com/PyCQA/flake8
|
||||||
flake8-isort==3.0.0 # https://github.com/gforcada/flake8-isort
|
flake8-isort==3.0.0 # https://github.com/gforcada/flake8-isort
|
||||||
coverage==5.1 # https://github.com/nedbat/coveragepy
|
coverage==5.1 # https://github.com/nedbat/coveragepy
|
||||||
black==19.10b0 # https://github.com/ambv/black
|
black==19.10b0 # https://github.com/ambv/black
|
||||||
|
|
|
@ -69,7 +69,7 @@ class TestUserDetailView:
|
||||||
response = user_detail_view(request, username=user.username)
|
response = user_detail_view(request, username=user.username)
|
||||||
|
|
||||||
assert response.status_code == 302
|
assert response.status_code == 302
|
||||||
assert response.url == f"/accounts/login/?next=/fake-url/"
|
assert response.url == "/accounts/login/?next=/fake-url/"
|
||||||
|
|
||||||
def test_case_sensitivity(self, rf: RequestFactory):
|
def test_case_sensitivity(self, rf: RequestFactory):
|
||||||
request = rf.get("/fake-url/")
|
request = rf.get("/fake-url/")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user