From 7f213d3b3d795f892777d979951405b6f1def469 Mon Sep 17 00:00:00 2001 From: Eduard Stepanov Date: Thu, 26 Sep 2024 16:58:20 +0300 Subject: [PATCH] migrate to pytest-freezer (#734) --- .github/workflows/ci.yml | 2 +- {{ cookiecutter.name }}/pyproject.toml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23cfbd0f..b22346dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: with: name: generated path: testproject - + include-hidden-files: true build-docker-image: needs: bootstrap diff --git a/{{ cookiecutter.name }}/pyproject.toml b/{{ cookiecutter.name }}/pyproject.toml index ca4a3ca4..9a6a1638 100644 --- a/{{ cookiecutter.name }}/pyproject.toml +++ b/{{ cookiecutter.name }}/pyproject.toml @@ -62,7 +62,7 @@ pymarkdownlnt = "^0.9.21" pytest-deadfixtures = "^2.2.1" pytest-django = "^4.7.0" pytest-env = "^1.1.1" -pytest-freezegun = "^0.4.2" +pytest-freezer = "^0.4.8" pytest-mock = "^3.12.0" pytest-randomly = "^3.15.0" pytest-xdist = "^3.6.1" @@ -119,10 +119,6 @@ env = [ ] filterwarnings = [ "ignore:.*'rest_framework_jwt.blacklist' defines default_app_config.*You can remove default_app_config.::django", - "ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning:pytest_freezegun:17", -] -markers = [ - "freeze_time: freezing time marker (pytest-freezegun does not register it)", ] python_files = ["test*.py"] pythonpath = ". src"