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
ca32979c
Unverified
Kaydet (Commit)
ca32979c
authored
Tem 21, 2016
tarafından
Dmitry Dygalo
Kaydeden (comit)
Markus Holtermann
Tem 21, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Made miscellaneous code cleanups
üst
a05d86a6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
12 deletions
+11
-12
tests.py
tests/cache/tests.py
+1
-1
test_formsets.py
tests/forms_tests/tests/test_formsets.py
+4
-4
tests.py
tests/migrate_signals/tests.py
+2
-2
runtests.py
tests/runtests.py
+2
-2
tests.py
tests/user_commands/tests.py
+1
-1
test_lazyobject.py
tests/utils_tests/test_lazyobject.py
+1
-2
No files found.
tests/cache/tests.py
Dosyayı görüntüle @
ca32979c
...
...
@@ -560,7 +560,7 @@ class BaseCacheTests(object):
# Count how many keys are left in the cache.
for
i
in
range
(
1
,
initial_count
):
if
cull_cache
.
has_key
(
'cull
%
d'
%
i
):
count
=
count
+
1
count
+=
1
self
.
assertEqual
(
count
,
final_count
)
def
test_cull
(
self
):
...
...
tests/forms_tests/tests/test_formsets.py
Dosyayı görüntüle @
ca32979c
...
...
@@ -1316,10 +1316,10 @@ class TestIsBoundBehavior(SimpleTestCase):
unbound_formset
=
ArticleFormSet
()
bound_formset
=
ArticleFormSet
(
data
)
empty_forms
=
[
]
empty_forms
.
append
(
unbound_formset
.
empty_form
)
empty_forms
.
append
(
bound_formset
.
empty_form
)
empty_forms
=
[
unbound_formset
.
empty_form
,
bound_formset
.
empty_form
]
# Empty forms should be unbound
self
.
assertFalse
(
empty_forms
[
0
]
.
is_bound
)
...
...
tests/migrate_signals/tests.py
Dosyayı görüntüle @
ca32979c
...
...
@@ -19,7 +19,7 @@ class Receiver(object):
signal
.
connect
(
self
,
sender
=
APP_CONFIG
)
def
__call__
(
self
,
signal
,
sender
,
**
kwargs
):
self
.
call_counter
=
self
.
call_counter
+
1
self
.
call_counter
+=
1
self
.
call_args
=
kwargs
...
...
@@ -39,7 +39,7 @@ class OneTimeReceiver(object):
# Although test runner calls migrate for several databases,
# testing for only one of them is quite sufficient.
if
kwargs
[
'using'
]
==
MIGRATE_DATABASE
:
self
.
call_counter
=
self
.
call_counter
+
1
self
.
call_counter
+=
1
self
.
call_args
=
kwargs
# we need to test only one call of migrate
self
.
signal
.
disconnect
(
self
,
sender
=
APP_CONFIG
)
...
...
tests/runtests.py
Dosyayı görüntüle @
ca32979c
...
...
@@ -330,11 +330,11 @@ def bisect_tests(bisection_label, options, test_labels, parallel):
if
failures_a
and
not
failures_b
:
print
(
"***** Problem found in first half. Bisecting again..."
)
iteration
=
iteration
+
1
iteration
+=
1
test_labels
=
test_labels_a
[:
-
1
]
elif
failures_b
and
not
failures_a
:
print
(
"***** Problem found in second half. Bisecting again..."
)
iteration
=
iteration
+
1
iteration
+=
1
test_labels
=
test_labels_b
[:
-
1
]
elif
failures_a
and
failures_b
:
print
(
"***** Multiple sources of failure found"
)
...
...
tests/user_commands/tests.py
Dosyayı görüntüle @
ca32979c
...
...
@@ -146,7 +146,7 @@ class CommandTests(SimpleTestCase):
self
.
counter
=
0
def
patched_check
(
self_
,
**
kwargs
):
self
.
counter
=
self
.
counter
+
1
self
.
counter
+=
1
saved_check
=
BaseCommand
.
check
BaseCommand
.
check
=
patched_check
...
...
tests/utils_tests/test_lazyobject.py
Dosyayı görüntüle @
ca32979c
...
...
@@ -103,8 +103,7 @@ class LazyObjectTestCase(TestCase):
def
test_hash
(
self
):
obj
=
self
.
lazy_wrap
(
'foo'
)
d
=
{}
d
[
obj
]
=
'bar'
d
=
{
obj
:
'bar'
}
self
.
assertIn
(
'foo'
,
d
)
self
.
assertEqual
(
d
[
'foo'
],
'bar'
)
...
...
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