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
ca013e65
Kaydet (Commit)
ca013e65
authored
Ara 16, 2014
tarafından
Diego Guimarães
Kaydeden (comit)
Tim Graham
Ara 16, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.
üst
2cb9d984
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
33 deletions
+0
-33
tests.py
tests/admin_custom_urls/tests.py
+0
-6
tests.py
tests/admin_inlines/tests.py
+0
-12
tests.py
tests/admin_views/tests.py
+0
-0
tests.py
tests/admin_widgets/tests.py
+0
-6
tests.py
tests/generic_inline_admin/tests.py
+0
-9
No files found.
tests/admin_custom_urls/tests.py
Dosyayı görüntüle @
ca013e65
...
...
@@ -22,9 +22,6 @@ class AdminCustomUrlsTest(TestCase):
def
setUp
(
self
):
self
.
client
.
login
(
username
=
'super'
,
password
=
'secret'
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_basic_add_GET
(
self
):
"""
Ensure GET on the add_view works.
...
...
@@ -91,9 +88,6 @@ class CustomRedirects(TestCase):
def
setUp
(
self
):
self
.
client
.
login
(
username
=
'super'
,
password
=
'secret'
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_post_save_add_redirect
(
self
):
"""
Ensures that ModelAdmin.response_post_save_add() controls the
...
...
tests/admin_inlines/tests.py
Dosyayı görüntüle @
ca013e65
...
...
@@ -36,9 +36,6 @@ class TestInline(TestCase):
self
.
assertEqual
(
result
,
True
)
self
.
factory
=
RequestFactory
()
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_can_delete
(
self
):
"""
can_delete should be passed to inlineformset factory.
...
...
@@ -359,9 +356,6 @@ class TestInlineMedia(TestCase):
result
=
self
.
client
.
login
(
username
=
'super'
,
password
=
'secret'
)
self
.
assertEqual
(
result
,
True
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_inline_media_only_base
(
self
):
holder
=
Holder
(
dummy
=
13
)
holder
.
save
()
...
...
@@ -438,9 +432,6 @@ class TestInlineProtectedOnDelete(TestCase):
result
=
self
.
client
.
login
(
username
=
'super'
,
password
=
'secret'
)
self
.
assertEqual
(
result
,
True
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_deleting_inline_with_protected_delete_does_not_validate
(
self
):
lotr
=
Novel
.
objects
.
create
(
name
=
'Lord of the rings'
)
chapter
=
Chapter
.
objects
.
create
(
novel
=
lotr
,
name
=
'Many Meetings'
)
...
...
@@ -514,9 +505,6 @@ class TestInlinePermissions(TestCase):
self
.
client
.
login
(
username
=
'admin'
,
password
=
'secret'
),
True
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_inline_add_m2m_noperm
(
self
):
response
=
self
.
client
.
get
(
'/admin/admin_inlines/author/add/'
)
# No change permission on books, so no inline
...
...
tests/admin_views/tests.py
Dosyayı görüntüle @
ca013e65
This diff is collapsed.
Click to expand it.
tests/admin_widgets/tests.py
Dosyayı görüntüle @
ca013e65
...
...
@@ -190,9 +190,6 @@ class AdminForeignKeyWidgetChangeList(DjangoTestCase):
def
setUp
(
self
):
self
.
client
.
login
(
username
=
"super"
,
password
=
"secret"
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_changelist_ForeignKey
(
self
):
response
=
self
.
client
.
get
(
'/admin_widgets/car/'
)
self
.
assertContains
(
response
,
'/auth/user/add/'
)
...
...
@@ -206,9 +203,6 @@ class AdminForeignKeyRawIdWidget(DjangoTestCase):
def
setUp
(
self
):
self
.
client
.
login
(
username
=
"super"
,
password
=
"secret"
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_nonexistent_target_id
(
self
):
band
=
models
.
Band
.
objects
.
create
(
name
=
'Bogey Blues'
)
pk
=
band
.
pk
...
...
tests/generic_inline_admin/tests.py
Dosyayı görüntüle @
ca013e65
...
...
@@ -41,9 +41,6 @@ class GenericAdminViewTest(TestCase):
m
.
save
()
self
.
png_media_pk
=
m
.
pk
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_basic_add_GET
(
self
):
"""
A smoke test to ensure GET on the add_view works.
...
...
@@ -137,9 +134,6 @@ class GenericInlineAdminParametersTest(TestCase):
self
.
client
.
login
(
username
=
'super'
,
password
=
'secret'
)
self
.
factory
=
RequestFactory
()
def
tearDown
(
self
):
self
.
client
.
logout
()
def
_create_object
(
self
,
model
):
"""
Create a model with an attached Media object via GFK. We can't
...
...
@@ -286,9 +280,6 @@ class GenericInlineAdminWithUniqueTogetherTest(TestCase):
def
setUp
(
self
):
self
.
client
.
login
(
username
=
'super'
,
password
=
'secret'
)
def
tearDown
(
self
):
self
.
client
.
logout
()
def
test_add
(
self
):
category_id
=
Category
.
objects
.
create
(
name
=
'male'
)
.
pk
post_data
=
{
...
...
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