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
2e928583
Kaydet (Commit)
2e928583
authored
Eyl 09, 2012
tarafından
Karen Tracey
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a couple of test failures on Windows.
üst
fcec904e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
os_utils.py
tests/regressiontests/utils/os_utils.py
+11
-6
No files found.
tests/regressiontests/utils/os_utils.py
Dosyayı görüntüle @
2e928583
import
os
from
django.utils
import
unittest
from
django.utils._os
import
safe_join
class
SafeJoinTests
(
unittest
.
TestCase
):
def
test_base_path_ends_with_sep
(
self
):
drive
,
path
=
os
.
path
.
splitdrive
(
safe_join
(
"/abc/"
,
"abc"
))
self
.
assertEqual
(
safe_join
(
"/abc/"
,
"abc"
)
,
"
/abc/abc"
,
path
,
"
{0}abc{0}abc"
.
format
(
os
.
path
.
sep
)
)
def
test_root_path
(
self
):
drive
,
path
=
os
.
path
.
splitdrive
(
safe_join
(
"/"
,
"path"
))
self
.
assertEqual
(
safe_join
(
"/"
,
"path"
)
,
"
/path"
,
path
,
"
{0}path"
.
format
(
os
.
path
.
sep
)
,
)
drive
,
path
=
os
.
path
.
splitdrive
(
safe_join
(
"/"
,
""
))
self
.
assertEqual
(
safe_join
(
"/"
,
""
)
,
"/"
,
path
,
os
.
path
.
sep
,
)
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