File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed
Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,18 @@ jobs:
4141 - " 3.11"
4242 - " 3.12"
4343 - " 3.13"
44+ - " 3.14"
4445 django-version :
45- - " 4.2.0"
46- - " 5.1.0"
47- - " 5.2.0"
46+ - " 4.2"
47+ - " 5.2"
48+ - " 6.0"
49+ exclude :
50+ - python-version : " 3.14"
51+ django-version : " 4.2"
52+ - python-version : " 3.10"
53+ django-version : " 6.0"
54+ - python-version : " 3.11"
55+ django-version : " 6.0"
4856 steps :
4957 - uses : actions/checkout@v6
5058 - uses : actions/setup-python@v6
6573 matrix :
6674 python-version : ["3.x"]
6775 wagtail-version :
68- - " 6.3.0 "
69- - " 7.0.0 "
70- - " 7.1.0 "
76+ - " 6.3"
77+ - " 7.0"
78+ - " 7.1"
7179 steps :
7280 - uses : actions/checkout@v6
7381 - name : Set up Python ${{ matrix.python-version }}
7684 python-version : ${{ matrix.python-version }}
7785 - run : sudo apt-get update && sudo apt-get install -y gettext
7886 - run : python -m pip install -e ".[test,wagtail]"
79- - run : python -m pip install wagtail~=${{ matrix.wagtail-version }}
87+ - run : python -m pip install wagtail~=${{ matrix.wagtail-version }}.0
8088 - run : python -m pytest
8189 - uses : codecov/codecov-action@v5
8290 with :
Original file line number Diff line number Diff line change @@ -105,9 +105,6 @@ def anonymize(self, commit=True):
105105 return update_fields
106106
107107
108- delattr (AbstractEmailUser , "password" )
109-
110-
111108class EmailUser (AbstractEmailUser ):
112109 class Meta (AbstractEmailUser .Meta ):
113110 swappable = "AUTH_USER_MODEL"
Original file line number Diff line number Diff line change @@ -28,11 +28,12 @@ classifiers = [
2828 " Programming Language :: Python :: 3.11" ,
2929 " Programming Language :: Python :: 3.12" ,
3030 " Programming Language :: Python :: 3.13" ,
31+ " Programming Language :: Python :: 3.14" ,
3132 " Programming Language :: Python :: 3 :: Only" ,
3233 " Framework :: Django" ,
3334 " Framework :: Django :: 4.2" ,
34- " Framework :: Django :: 5.1" ,
3535 " Framework :: Django :: 5.2" ,
36+ " Framework :: Django :: 6.0" ,
3637 " Framework :: Wagtail" ,
3738 " Framework :: Wagtail :: 6" ,
3839 " Framework :: Wagtail :: 7" ,
Original file line number Diff line number Diff line change 11import pytest
2- from django .core .exceptions import FieldDoesNotExist
32
43from mailauth .contrib .user .models import EmailUser
54
@@ -30,8 +29,7 @@ def test_get_session_auth_hash__unique(self, db):
3029
3130 def test_password_field (self ):
3231 user = EmailUser (email = "spiderman@avengers.com" )
33- with pytest .raises (FieldDoesNotExist ):
34- assert user .password
32+ assert user .password is None
3533
3634
3735class TestEmailUserManager :
You can’t perform that action at this time.
0 commit comments