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
389c3ffc
Kaydet (Commit)
389c3ffc
authored
Nis 04, 2017
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated tests after French translation update
üst
2dba812d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
test_logentry.py
tests/admin_utils/test_logentry.py
+4
-3
test_text.py
tests/utils_tests/test_text.py
+1
-1
No files found.
tests/admin_utils/test_logentry.py
Dosyayı görüntüle @
389c3ffc
...
...
@@ -56,7 +56,7 @@ class LogEntryTests(TestCase):
logentry
=
LogEntry
.
objects
.
filter
(
content_type__model__iexact
=
'article'
)
.
latest
(
'id'
)
self
.
assertEqual
(
logentry
.
get_change_message
(),
'Changed title and hist.'
)
with
translation
.
override
(
'fr'
):
self
.
assertEqual
(
logentry
.
get_change_message
(),
'
Title et hist modifié(s)
.'
)
self
.
assertEqual
(
logentry
.
get_change_message
(),
'
Modification de title et hist
.'
)
add_url
=
reverse
(
'admin:admin_utils_article_add'
)
post_data
[
'title'
]
=
'New'
...
...
@@ -134,8 +134,9 @@ class LogEntryTests(TestCase):
with
translation
.
override
(
'fr'
):
self
.
assertEqual
(
logentry
.
get_change_message
(),
"Domain modifié(s). Article « Article object » ajouté. "
"Title modifié(s) pour l'objet article « Article object ». Article « Article object » supprimé."
"Modification de domain. Ajout de article « Article object ». "
"Modification de title pour l'objet article « Article object ». "
"Suppression de article « Article object »."
)
def
test_logentry_get_edited_object
(
self
):
...
...
tests/utils_tests/test_text.py
Dosyayı görüntüle @
389c3ffc
...
...
@@ -234,4 +234,4 @@ class TestUtilsText(SimpleTestCase):
name
=
'article'
,
object
=
'My first try'
,
)
with
override
(
'fr'
):
self
.
assertEqual
(
'
article «
\xa0
My first try
\xa0
» ajouté
.'
,
s
)
self
.
assertEqual
(
'
Ajout de article «
\xa0
My first try
\xa0
»
.'
,
s
)
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