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
5a41ca79
Kaydet (Commit)
5a41ca79
authored
Agu 16, 2016
tarafından
Tim Graham
Kaydeden (comit)
GitHub
Agu 16, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced 'raise SkipTest' with self.skipTest() in a few tests.
üst
4f5b7eeb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
test_compilation.py
tests/i18n/test_compilation.py
+1
-1
test_extraction.py
tests/i18n/test_extraction.py
+3
-3
test_timezone.py
tests/utils_tests/test_timezone.py
+1
-1
No files found.
tests/i18n/test_compilation.py
Dosyayı görüntüle @
5a41ca79
...
...
@@ -156,7 +156,7 @@ class CompilationErrorHandling(MessageCompilationTests):
else
:
cmd
=
MakeMessagesCommand
()
if
cmd
.
gettext_version
<
(
0
,
18
,
3
):
raise
unittest
.
S
kipTest
(
"python-brace-format is a recent gettext addition."
)
self
.
s
kipTest
(
"python-brace-format is a recent gettext addition."
)
with
self
.
assertRaisesMessage
(
CommandError
,
"' cannot start a field name"
):
call_command
(
'compilemessages'
,
locale
=
[
'ko'
],
verbosity
=
0
)
...
...
tests/i18n/test_extraction.py
Dosyayı görüntüle @
5a41ca79
...
...
@@ -7,7 +7,7 @@ import re
import
shutil
import
time
import
warnings
from
unittest
import
SkipTest
,
skipUnless
from
unittest
import
skipUnless
from
django.core
import
management
from
django.core.management
import
execute_from_command_line
...
...
@@ -498,7 +498,7 @@ class SymlinkExtractorTests(ExtractorTests):
try
:
os
.
symlink
(
os
.
path
.
join
(
self
.
test_dir
,
'templates'
),
self
.
symlinked_dir
)
except
(
OSError
,
NotImplementedError
):
raise
S
kipTest
(
"os.symlink() is available on this OS but can't be used by this user."
)
self
.
s
kipTest
(
"os.symlink() is available on this OS but can't be used by this user."
)
os
.
chdir
(
self
.
test_dir
)
management
.
call_command
(
'makemessages'
,
locale
=
[
LOCALE
],
verbosity
=
0
,
symlinks
=
True
)
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
PO_FILE
))
...
...
@@ -507,7 +507,7 @@ class SymlinkExtractorTests(ExtractorTests):
self
.
assertMsgId
(
'This literal should be included.'
,
po_contents
)
self
.
assertLocationCommentPresent
(
self
.
PO_FILE
,
None
,
'templates_symlinked'
,
'test.html'
)
else
:
raise
S
kipTest
(
"os.symlink() not available on this OS + Python version combination."
)
self
.
s
kipTest
(
"os.symlink() not available on this OS + Python version combination."
)
class
CopyPluralFormsExtractorTests
(
ExtractorTests
):
...
...
tests/utils_tests/test_timezone.py
Dosyayı görüntüle @
5a41ca79
...
...
@@ -46,7 +46,7 @@ class TimezoneTests(SimpleTestCase):
except
(
OverflowError
,
ValueError
)
as
exc
:
self
.
assertIn
(
"install pytz"
,
exc
.
args
[
0
])
else
:
raise
unittest
.
S
kipTest
(
"Failed to trigger an OverflowError or ValueError"
)
self
.
s
kipTest
(
"Failed to trigger an OverflowError or ValueError"
)
def
test_now
(
self
):
with
override_settings
(
USE_TZ
=
True
):
...
...
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