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
28da093a
Kaydet (Commit)
28da093a
authored
Eki 22, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allowed test from refs #23612 to be run from a directory other than tests.
üst
b62f7249
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tests.py
tests/fixtures_regress/tests.py
+7
-1
No files found.
tests/fixtures_regress/tests.py
Dosyayı görüntüle @
28da093a
...
...
@@ -850,7 +850,13 @@ class TestLoadFixtureFromOtherAppDirectory(TestCase):
#23612 -- fixtures path should be normalized to allow referencing relative
paths on Windows.
"""
fixtures
=
[
'fixtures_regress/fixtures/absolute.json'
]
current_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
# relative_prefix is something like tests/fixtures_regress or
# fixtures_regress depending on how runtests.py is invoked.
# All path separators must be / in order to be a proper regression test on
# Windows, so replace as appropriate.
relative_prefix
=
current_dir
.
replace
(
os
.
getcwd
(),
''
,
1
)[
1
:]
.
replace
(
'
\\
'
,
'/'
)
fixtures
=
[
relative_prefix
+
'/fixtures/absolute.json'
]
def
test_fixtures_loaded
(
self
):
count
=
Absolute
.
objects
.
count
()
...
...
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