From 7f6f3d8ae8fe70832933ac355466be7a471e8b2b Mon Sep 17 00:00:00 2001 From: Slava Nabatchikov Date: Sat, 23 Oct 2021 23:12:30 +0300 Subject: [PATCH 1/8] add check for dead-fixtures --- {{cookiecutter.project_slug}}/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/Makefile b/{{cookiecutter.project_slug}}/Makefile index a4b00a86..2c0efbc0 100644 --- a/{{cookiecutter.project_slug}}/Makefile +++ b/{{cookiecutter.project_slug}}/Makefile @@ -14,4 +14,4 @@ lint: flake8 src test: - cd src && pytest -x + cd src && pytest -x --dead-fixtures From a877aa15fedc9d5674cd686fb2a46339cf1ce03e Mon Sep 17 00:00:00 2001 From: Slava Nabatchikov Date: Sat, 23 Oct 2021 23:16:50 +0300 Subject: [PATCH 2/8] add check for dead-fixtures --- {{cookiecutter.project_slug}}/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/Makefile b/{{cookiecutter.project_slug}}/Makefile index 2c0efbc0..5620c78c 100644 --- a/{{cookiecutter.project_slug}}/Makefile +++ b/{{cookiecutter.project_slug}}/Makefile @@ -14,4 +14,5 @@ lint: flake8 src test: - cd src && pytest -x --dead-fixtures + cd src && pytest --dead-fixtures + cd src && pytest -x From 8df8ed0383169bee050fb51ee5e42154e47308ef Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 22:50:22 +0000 Subject: [PATCH 3/8] Update dependency traitlets to v5.1.1 (#378) Co-authored-by: Renovate Bot --- {{cookiecutter.project_slug}}/dev-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/dev-requirements.txt b/{{cookiecutter.project_slug}}/dev-requirements.txt index 7b00cacd..a73e15d6 100644 --- a/{{cookiecutter.project_slug}}/dev-requirements.txt +++ b/{{cookiecutter.project_slug}}/dev-requirements.txt @@ -180,7 +180,7 @@ text-unidecode==1.3 # via faker toml==0.10.2 # via pytest -traitlets==5.1.0 +traitlets==5.1.1 # via # ipython # matplotlib-inline From 56e9fa48ccc6843afbfe9a5fce880eaac3f102fe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 29 Oct 2021 13:11:06 +0000 Subject: [PATCH 4/8] Update dependency packaging to v21.2 (#379) Co-authored-by: Renovate Bot --- {{cookiecutter.project_slug}}/dev-requirements.txt | 2 +- {{cookiecutter.project_slug}}/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/dev-requirements.txt b/{{cookiecutter.project_slug}}/dev-requirements.txt index a73e15d6..01cc8cde 100644 --- a/{{cookiecutter.project_slug}}/dev-requirements.txt +++ b/{{cookiecutter.project_slug}}/dev-requirements.txt @@ -114,7 +114,7 @@ mccabe==0.6.1 # via flake8 mixer==7.2.0 # via -r dev-requirements.in -packaging==21.0 +packaging==21.2 # via # -c requirements.txt # pytest diff --git a/{{cookiecutter.project_slug}}/requirements.txt b/{{cookiecutter.project_slug}}/requirements.txt index fea5cba1..758dfdcb 100644 --- a/{{cookiecutter.project_slug}}/requirements.txt +++ b/{{cookiecutter.project_slug}}/requirements.txt @@ -66,7 +66,7 @@ jinja2==3.0.2 # via coreschema markupsafe==2.0.1 # via jinja2 -packaging==21.0 +packaging==21.2 # via drf-yasg pillow==8.4.0 # via -r requirements.in From 3a524397f878a0772c812ff6f1ec98f39eaaf45d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 30 Oct 2021 04:57:37 +0000 Subject: [PATCH 5/8] Update dependency ipython to v7.29.0 (#380) Co-authored-by: Renovate Bot --- {{cookiecutter.project_slug}}/dev-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/dev-requirements.txt b/{{cookiecutter.project_slug}}/dev-requirements.txt index 01cc8cde..cf5278a6 100644 --- a/{{cookiecutter.project_slug}}/dev-requirements.txt +++ b/{{cookiecutter.project_slug}}/dev-requirements.txt @@ -100,7 +100,7 @@ iniconfig==1.1.1 # via pytest ipython-genutils==0.2.0 # via traitlets -ipython==7.28.0 +ipython==7.29.0 # via -r dev-requirements.in isort==5.9.3 # via flake8-isort From fd07fb74ab59e868c73512cd0ca4952129b44cd8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 30 Oct 2021 08:24:17 +0000 Subject: [PATCH 6/8] Update dependency django-storages to v1.12.3 (#381) Co-authored-by: Renovate Bot --- {{cookiecutter.project_slug}}/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/requirements.txt b/{{cookiecutter.project_slug}}/requirements.txt index 758dfdcb..7c2b4406 100644 --- a/{{cookiecutter.project_slug}}/requirements.txt +++ b/{{cookiecutter.project_slug}}/requirements.txt @@ -34,7 +34,7 @@ django-ipware==3.0.7 # via -r requirements.in django-split-settings==1.1.0 # via -r requirements.in -django-storages==1.12.2 +django-storages==1.12.3 # via -r requirements.in django==3.2.8 # via From 8afbef872c102f5f83375ced5754c88438d77ebd Mon Sep 17 00:00:00 2001 From: Slava Nabatchikov Date: Sun, 31 Oct 2021 13:56:50 +0300 Subject: [PATCH 7/8] remove unused fixtures --- {{cookiecutter.project_slug}}/src/app/fixtures/api.py | 5 ----- {{cookiecutter.project_slug}}/src/users/fixtures.py | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/{{cookiecutter.project_slug}}/src/app/fixtures/api.py b/{{cookiecutter.project_slug}}/src/app/fixtures/api.py index edd527f6..28b5dfab 100644 --- a/{{cookiecutter.project_slug}}/src/app/fixtures/api.py +++ b/{{cookiecutter.project_slug}}/src/app/fixtures/api.py @@ -11,8 +11,3 @@ def as_anon(): @pytest.fixture def as_user(user): return ApiClient(user=user) - - -@pytest.fixture -def as_staff(staff): - return ApiClient(user=staff) diff --git a/{{cookiecutter.project_slug}}/src/users/fixtures.py b/{{cookiecutter.project_slug}}/src/users/fixtures.py index 7f369e3a..e0b4db4f 100644 --- a/{{cookiecutter.project_slug}}/src/users/fixtures.py +++ b/{{cookiecutter.project_slug}}/src/users/fixtures.py @@ -1,16 +1,6 @@ import pytest -@pytest.fixture -def anon(factory): - return factory.anon() - - @pytest.fixture def user(factory): return factory.user() - - -@pytest.fixture -def staff(factory): - return factory.user(is_staff=True) From facb2e7f9277e50603265392c14fe65f90c98468 Mon Sep 17 00:00:00 2001 From: Slava Nabatchikov Date: Sun, 31 Oct 2021 14:02:27 +0300 Subject: [PATCH 8/8] fix imports --- {{cookiecutter.project_slug}}/src/app/fixtures/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/src/app/fixtures/__init__.py b/{{cookiecutter.project_slug}}/src/app/fixtures/__init__.py index cbfb63df..70783af0 100644 --- a/{{cookiecutter.project_slug}}/src/app/fixtures/__init__.py +++ b/{{cookiecutter.project_slug}}/src/app/fixtures/__init__.py @@ -1,5 +1,4 @@ from app.fixtures.api import as_anon -from app.fixtures.api import as_staff from app.fixtures.api import as_user from app.fixtures.factory import factory from app.fixtures.image import uploaded_image @@ -8,7 +7,6 @@ __all__ = [ 'as_anon', 'as_user', - 'as_staff', 'factory', 'uploaded_image', '_temporary_media',