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
b8c480a1
Kaydet (Commit)
b8c480a1
authored
May 20, 2014
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused translations in auth tests
üst
07b6404d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
django.po
django/contrib/auth/locale/en/LC_MESSAGES/django.po
+1
-9
test_forms.py
django/contrib/auth/tests/test_forms.py
+2
-2
No files found.
django/contrib/auth/locale/en/LC_MESSAGES/django.po
Dosyayı görüntüle @
b8c480a1
...
...
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-
19 15:17
+0200\n"
"POT-Creation-Date: 2014-05-
20 12:20
+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
...
...
@@ -267,14 +267,6 @@ msgstr ""
msgid "Password reset on %(site_name)s"
msgstr ""
#: contrib/auth/tests/test_forms.py:153
msgid "This user is disallowed."
msgstr ""
#: contrib/auth/tests/test_forms.py:154
msgid "Sorry, nobody's allowed in."
msgstr ""
#: contrib/auth/tests/test_forms.py:387
msgid "Enter a valid email address."
msgstr ""
...
...
django/contrib/auth/tests/test_forms.py
Dosyayı görüntüle @
b8c480a1
...
...
@@ -150,8 +150,8 @@ class AuthenticationFormTest(TestCase):
class
PickyAuthenticationForm
(
AuthenticationForm
):
def
confirm_login_allowed
(
self
,
user
):
if
user
.
username
==
"inactive"
:
raise
forms
.
ValidationError
(
_
(
"This user is disallowed."
)
)
raise
forms
.
ValidationError
(
_
(
"Sorry, nobody's allowed in."
)
)
raise
forms
.
ValidationError
(
"This user is disallowed."
)
raise
forms
.
ValidationError
(
"Sorry, nobody's allowed in."
)
form
=
PickyAuthenticationForm
(
None
,
data
)
self
.
assertFalse
(
form
.
is_valid
())
...
...
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