Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
e90c745a
Kaydet (Commit)
e90c745a
authored
Ara 30, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #22993 -- Removed skipIfCustomUser per deprecation timeline.
üst
e707e4c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
16 deletions
+2
-16
__init__.py
django/contrib/auth/tests/__init__.py
+0
-0
utils.py
django/contrib/auth/tests/utils.py
+0
-16
2.0.txt
docs/releases/2.0.txt
+2
-0
No files found.
django/contrib/auth/tests/__init__.py
deleted
100644 → 0
Dosyayı görüntüle @
e707e4c7
django/contrib/auth/tests/utils.py
deleted
100644 → 0
Dosyayı görüntüle @
e707e4c7
import
warnings
from
unittest
import
skipIf
from
django.conf
import
settings
from
django.utils.deprecation
import
RemovedInDjango20Warning
def
skipIfCustomUser
(
test_func
):
"""
Skip a test if a custom user model is in use.
"""
warnings
.
warn
(
"django.contrib.auth.tests.utils.skipIfCustomUser is deprecated."
,
RemovedInDjango20Warning
,
stacklevel
=
2
)
return
skipIf
(
settings
.
AUTH_USER_MODEL
!=
'auth.User'
,
'Custom user model in use'
)(
test_func
)
docs/releases/2.0.txt
Dosyayı görüntüle @
e90c745a
...
...
@@ -259,3 +259,5 @@ these features.
zones no longer convert aware datetimes to naive values in UTC anymore when
such values are passed as parameters to SQL queries executed outside of the
ORM, e.g. with ``cursor.execute()``.
* ``django.contrib.auth.tests.utils.skipIfCustomUser()`` is removed.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment