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
65c55711
Kaydet (Commit)
65c55711
authored
May 19, 2013
tarafından
Senko Rasic
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix warnings imports in fixtures tests
üst
c44a2c40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
tests.py
tests/fixtures_model_package/tests.py
+2
-1
tests.py
tests/fixtures_regress/tests.py
+1
-1
No files found.
tests/fixtures_model_package/tests.py
Dosyayı görüntüle @
65c55711
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
import
warnings
from
django.core
import
management
from
django.core
import
management
from
django.db
import
transaction
from
django.db
import
transaction
from
django.test
import
TestCase
,
TransactionTestCase
from
django.test
import
TestCase
,
TransactionTestCase
...
@@ -100,7 +102,6 @@ class FixtureTestCase(TestCase):
...
@@ -100,7 +102,6 @@ class FixtureTestCase(TestCase):
)
)
# Load a fixture that doesn't exist
# Load a fixture that doesn't exist
import
warnings
with
warnings
.
catch_warnings
(
record
=
True
):
with
warnings
.
catch_warnings
(
record
=
True
):
management
.
call_command
(
"loaddata"
,
"unknown.json"
,
verbosity
=
0
,
commit
=
False
)
management
.
call_command
(
"loaddata"
,
"unknown.json"
,
verbosity
=
0
,
commit
=
False
)
...
...
tests/fixtures_regress/tests.py
Dosyayı görüntüle @
65c55711
...
@@ -4,6 +4,7 @@ from __future__ import absolute_import, unicode_literals
...
@@ -4,6 +4,7 @@ from __future__ import absolute_import, unicode_literals
import
os
import
os
import
re
import
re
import
warnings
from
django.core.serializers.base
import
DeserializationError
from
django.core.serializers.base
import
DeserializationError
from
django.core
import
management
from
django.core
import
management
...
@@ -441,7 +442,6 @@ class TestFixtures(TestCase):
...
@@ -441,7 +442,6 @@ class TestFixtures(TestCase):
def
test_loaddata_not_existant_fixture_file
(
self
):
def
test_loaddata_not_existant_fixture_file
(
self
):
stdout_output
=
StringIO
()
stdout_output
=
StringIO
()
import
warnings
with
warnings
.
catch_warnings
(
record
=
True
):
with
warnings
.
catch_warnings
(
record
=
True
):
management
.
call_command
(
management
.
call_command
(
'loaddata'
,
'loaddata'
,
...
...
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