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
04d14543
Kaydet (Commit)
04d14543
authored
Ara 20, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Moved unnecessary inner imports in admin_scripts tests.
üst
e7b804c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
tests.py
tests/admin_scripts/tests.py
+8
-7
No files found.
tests/admin_scripts/tests.py
Dosyayı görüntüle @
04d14543
...
@@ -22,7 +22,12 @@ from django.core.management import (
...
@@ -22,7 +22,12 @@ from django.core.management import (
BaseCommand
,
CommandError
,
call_command
,
color
,
BaseCommand
,
CommandError
,
call_command
,
color
,
)
)
from
django.core.management.commands.loaddata
import
Command
as
LoaddataCommand
from
django.core.management.commands.loaddata
import
Command
as
LoaddataCommand
from
django.core.management.commands.runserver
import
Command
as
RunserverCommand
from
django.core.management.commands.runserver
import
(
Command
as
RunserverCommand
,
)
from
django.core.management.commands.testserver
import
(
Command
as
TestserverCommand
,
)
from
django.db
import
ConnectionHandler
,
connection
from
django.db
import
ConnectionHandler
,
connection
from
django.db.migrations.recorder
import
MigrationRecorder
from
django.db.migrations.recorder
import
MigrationRecorder
from
django.test
import
(
from
django.test
import
(
...
@@ -1271,13 +1276,11 @@ class ManageCheck(AdminScriptTestCase):
...
@@ -1271,13 +1276,11 @@ class ManageCheck(AdminScriptTestCase):
class
ManageRunserver
(
AdminScriptTestCase
):
class
ManageRunserver
(
AdminScriptTestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
from
django.core.management.commands.runserver
import
Command
def
monkey_run
(
*
args
,
**
options
):
def
monkey_run
(
*
args
,
**
options
):
return
return
self
.
output
=
StringIO
()
self
.
output
=
StringIO
()
self
.
cmd
=
Command
(
stdout
=
self
.
output
)
self
.
cmd
=
Runserver
Command
(
stdout
=
self
.
output
)
self
.
cmd
.
run
=
monkey_run
self
.
cmd
.
run
=
monkey_run
def
assertServerSettings
(
self
,
addr
,
port
,
ipv6
=
False
,
raw_ipv6
=
False
):
def
assertServerSettings
(
self
,
addr
,
port
,
ipv6
=
False
,
raw_ipv6
=
False
):
...
@@ -1361,9 +1364,8 @@ class ManageRunserver(AdminScriptTestCase):
...
@@ -1361,9 +1364,8 @@ class ManageRunserver(AdminScriptTestCase):
class
ManageRunserverMigrationWarning
(
TestCase
):
class
ManageRunserverMigrationWarning
(
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
from
django.core.management.commands.runserver
import
Command
self
.
stdout
=
StringIO
()
self
.
stdout
=
StringIO
()
self
.
runserver_command
=
Command
(
stdout
=
self
.
stdout
)
self
.
runserver_command
=
Runserver
Command
(
stdout
=
self
.
stdout
)
@override_settings
(
INSTALLED_APPS
=
[
"admin_scripts.app_waiting_migration"
])
@override_settings
(
INSTALLED_APPS
=
[
"admin_scripts.app_waiting_migration"
])
def
test_migration_warning_one_app
(
self
):
def
test_migration_warning_one_app
(
self
):
...
@@ -1405,7 +1407,6 @@ class ManageRunserverEmptyAllowedHosts(AdminScriptTestCase):
...
@@ -1405,7 +1407,6 @@ class ManageRunserverEmptyAllowedHosts(AdminScriptTestCase):
class
ManageTestserver
(
AdminScriptTestCase
):
class
ManageTestserver
(
AdminScriptTestCase
):
from
django.core.management.commands.testserver
import
Command
as
TestserverCommand
@mock.patch.object
(
TestserverCommand
,
'handle'
,
return_value
=
''
)
@mock.patch.object
(
TestserverCommand
,
'handle'
,
return_value
=
''
)
def
test_testserver_handle_params
(
self
,
mock_handle
):
def
test_testserver_handle_params
(
self
,
mock_handle
):
...
...
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