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
335fc44f
Kaydet (Commit)
335fc44f
authored
Haz 02, 2015
tarafından
Carl Meyer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improved isolation of applied-migrations table in migration tests.
üst
23048d18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test_base.py
tests/migrations/test_base.py
+6
-0
No files found.
tests/migrations/test_base.py
Dosyayı görüntüle @
335fc44f
...
...
@@ -6,6 +6,7 @@ from importlib import import_module
from
django.apps
import
apps
from
django.db
import
connection
from
django.db.migrations.recorder
import
MigrationRecorder
from
django.test
import
TransactionTestCase
from
django.test.utils
import
extend_sys_path
from
django.utils.module_loading
import
module_dir
...
...
@@ -18,6 +19,11 @@ class MigrationTestBase(TransactionTestCase):
available_apps
=
[
"migrations"
]
def
tearDown
(
self
):
# Reset applied-migrations state.
recorder
=
MigrationRecorder
(
connection
)
recorder
.
migration_qs
.
filter
(
app
=
'migrations'
)
.
delete
()
def
get_table_description
(
self
,
table
):
with
connection
.
cursor
()
as
cursor
:
return
connection
.
introspection
.
get_table_description
(
cursor
,
table
)
...
...
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