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
5915800d
Kaydet (Commit)
5915800d
authored
May 18, 2013
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #1127 from filias/20142
Fixed #20142 -- Added error handling for fixture setup
üst
dc8814bf
5883ae56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
testcases.py
django/test/testcases.py
+11
-7
No files found.
django/test/testcases.py
Dosyayı görüntüle @
5915800d
...
...
@@ -843,13 +843,17 @@ class TestCase(TransactionTestCase):
for
db
in
self
.
_databases_names
(
include_mirrors
=
False
):
if
hasattr
(
self
,
'fixtures'
):
call_command
(
'loaddata'
,
*
self
.
fixtures
,
**
{
'verbosity'
:
0
,
'commit'
:
False
,
'database'
:
db
,
'skip_validation'
:
True
,
})
try
:
call_command
(
'loaddata'
,
*
self
.
fixtures
,
**
{
'verbosity'
:
0
,
'commit'
:
False
,
'database'
:
db
,
'skip_validation'
:
True
,
})
except
Exception
:
self
.
_fixture_teardown
()
raise
def
_fixture_teardown
(
self
):
if
not
connections_support_transactions
():
...
...
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