Skip to content

Commit 20e9ad3

Browse files
committed
Fix Django 5 warnings, check for migrations in pipeline
1 parent 6a720e6 commit 20e9ad3

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

azure-pipelines.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ stages:
4949
- script: python -m pip install -r requirements-dev.txt
5050
displayName: 'CR-QC: Install from local repo'
5151

52+
- script: |
53+
cd testproject/
54+
python manage.py makemigrations --check
55+
displayName: 'CR-QC: Check migrations'
56+
5257
- script: pytest ./testproject/
5358
displayName: 'CR-QC: Run unit tests'
5459

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ DJANGO_SETTINGS_MODULE = testproject.settings
1313
junit_family = xunit2
1414
addopts = --cov wagtailcache --cov-report html --cov-report xml --junitxml junit/test-results.xml
1515
python_files = tests.py test_*.py
16-
filterwarnings =
17-
ignore
18-
default:::wagtailcache.*

testproject/testproject/settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@
102102

103103
USE_I18N = True
104104

105-
USE_L10N = True
106-
107105
USE_TZ = True
108106

109107

wagtailcache/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
release = ["2", "0", "0"]
22
__version__ = "{0}.{1}.{2}".format(release[0], release[1], release[2])
33
__shortversion__ = "{0}.{1}".format(release[0], release[1])
4-
5-
default_app_config = "wagtailcache.apps.WagtailCacheAppConfig"

0 commit comments

Comments
 (0)