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
f487a327
Kaydet (Commit)
f487a327
authored
Ock 08, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoided a deprecated alias on Python 3 in file_uploads test.
üst
8713ea75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests.py
tests/file_uploads/tests.py
+3
-2
No files found.
tests/file_uploads/tests.py
Dosyayı görüntüle @
f487a327
...
...
@@ -17,7 +17,7 @@ from django.test import TestCase, client
from
django.test
import
override_settings
from
django.utils.encoding
import
force_bytes
from
django.utils.http
import
urlquote
from
django.utils.six
import
BytesIO
,
StringIO
from
django.utils.six
import
BytesIO
,
PY2
,
StringIO
from
.
import
uploadhandler
from
.models
import
FileModel
...
...
@@ -108,7 +108,8 @@ class FileUploadTests(TestCase):
def
test_big_base64_newlines_upload
(
self
):
self
.
_test_base64_upload
(
"Big data"
*
68000
,
encode
=
base64
.
encodestring
)
# encodestring is a deprecated alias on Python 3
"Big data"
*
68000
,
encode
=
base64
.
encodestring
if
PY2
else
base64
.
encodebytes
)
def
test_unicode_file_name
(
self
):
tdir
=
sys_tempfile
.
mkdtemp
()
...
...
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