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
4ff1e6ef
Kaydet (Commit)
4ff1e6ef
authored
May 18, 2016
tarafından
Loïc Bistuer
Kaydeden (comit)
Tim Graham
May 18, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed running auth_tests in isolation after
3a47d42f
.
üst
2a4af0ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
test_basic.py
tests/auth_tests/test_basic.py
+9
-0
No files found.
tests/auth_tests/test_basic.py
Dosyayı görüntüle @
4ff1e6ef
...
...
@@ -3,16 +3,25 @@ from __future__ import unicode_literals
import
warnings
from
django.apps
import
apps
from
django.contrib.auth
import
get_user_model
from
django.contrib.auth.models
import
AnonymousUser
,
User
from
django.core.exceptions
import
ImproperlyConfigured
from
django.db
import
IntegrityError
from
django.dispatch
import
receiver
from
django.test
import
TestCase
,
override_settings
from
django.test.signals
import
setting_changed
from
django.utils
import
translation
from
.models
import
CustomUser
@receiver
(
setting_changed
)
def
user_model_swapped
(
**
kwargs
):
if
kwargs
[
'setting'
]
==
'AUTH_USER_MODEL'
:
apps
.
clear_cache
()
class
BasicTestCase
(
TestCase
):
def
test_user
(
self
):
"Check that users can be created and can set their password"
...
...
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