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
8e960c5a
Kaydet (Commit)
8e960c5a
authored
Nis 27, 2018
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed urllib2 reference in file storage tests
üst
a9189d27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests.py
tests/file_storage/tests.py
+3
-2
No files found.
tests/file_storage/tests.py
Dosyayı görüntüle @
8e960c5a
...
@@ -943,9 +943,10 @@ class FileLikeObjectTestCase(LiveServerTestCase):
...
@@ -943,9 +943,10 @@ class FileLikeObjectTestCase(LiveServerTestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
shutil
.
rmtree
(
self
.
temp_dir
)
shutil
.
rmtree
(
self
.
temp_dir
)
def
test_urllib
2
_urlopen
(
self
):
def
test_urllib
_request
_urlopen
(
self
):
"""
"""
Test the File storage API with a file like object coming from urllib2.urlopen()
Test the File storage API with a file-like object coming from
urllib.request.urlopen().
"""
"""
file_like_object
=
urlopen
(
self
.
live_server_url
+
'/'
)
file_like_object
=
urlopen
(
self
.
live_server_url
+
'/'
)
f
=
File
(
file_like_object
)
f
=
File
(
file_like_object
)
...
...
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