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
6b63742c
Kaydet (Commit)
6b63742c
authored
Mar 03, 2014
tarafından
Russell Keith-Magee
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Corrected expected test output to allow for cleanups in signal and compatibility checks.
üst
c41335fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
model_checks.py
django/core/checks/model_checks.py
+2
-2
tests.py
tests/check_framework/tests.py
+1
-1
tests.py
tests/model_validation/tests.py
+3
-3
No files found.
django/core/checks/model_checks.py
Dosyayı görüntüle @
6b63742c
...
...
@@ -31,9 +31,9 @@ def check_model_signals(app_configs=None, **kwargs):
# The receiver is either a function or an instance of class
# defining a `__call__` method.
if
isinstance
(
receiver
,
types
.
FunctionType
):
description
=
"The
`
%
s`
function"
%
receiver
.
__name__
description
=
"The
'
%
s'
function"
%
receiver
.
__name__
else
:
description
=
"An instance of the
`
%
s`
class"
%
receiver
.
__class__
.
__name__
description
=
"An instance of the
'
%
s'
class"
%
receiver
.
__class__
.
__name__
errors
.
append
(
Error
(
"
%
s was connected to the '
%
s' signal "
...
...
tests/check_framework/tests.py
Dosyayı görüntüle @
6b63742c
...
...
@@ -134,7 +134,7 @@ class Django_1_6_0_CompatibilityChecks(TestCase):
errors
=
check_1_6_compatibility
()
expected
=
[
checks
.
Warning
(
'BooleanField does not have a default value.
'
,
'BooleanField does not have a default value.'
,
hint
=
(
'Django 1.6 changed the default value of BooleanField from False to None. '
'See https://docs.djangoproject.com/en/1.6/ref/models/fields/#booleanfield '
'for more information.'
),
...
...
tests/model_validation/tests.py
Dosyayı görüntüle @
6b63742c
...
...
@@ -32,7 +32,7 @@ class ModelValidationTest(TestCase):
errors
=
run_checks
()
expected
=
[
Error
(
"The
`on_post_init` function was connected to the `post_init`
"
"The
'on_post_init' function was connected to the 'post_init'
"
"signal with a lazy reference to the 'missing-app.Model' "
"sender, which has not been installed."
,
hint
=
None
,
...
...
@@ -40,8 +40,8 @@ class ModelValidationTest(TestCase):
id
=
'signals.E001'
,
),
Error
(
"An instance of the
`OnPostInit`
class was connected to "
"the
`post_init`
signal with a lazy reference to the "
"An instance of the
'OnPostInit'
class was connected to "
"the
'post_init'
signal with a lazy reference to the "
"'missing-app.Model' sender, which has not been installed."
,
hint
=
None
,
obj
=
'model_validation.tests'
,
...
...
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