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
3ee18400
Kaydet (Commit)
3ee18400
authored
Kas 03, 2015
tarafından
Ville Skyttä
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25668 -- Misc spelling errors
üst
a10cbbbc
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
18 additions
and
18 deletions
+18
-18
base.py
django/core/cache/backends/base.py
+1
-1
testcases.py
django/test/testcases.py
+1
-1
encoding.py
django/utils/encoding.py
+1
-1
termcolors.py
django/utils/termcolors.py
+2
-2
tests.py
tests/admin_utils/tests.py
+1
-1
tests.py
tests/db_functions/tests.py
+2
-2
tests.py
tests/foreign_object/tests.py
+1
-1
test_extraction.py
tests/i18n/test_extraction.py
+1
-1
tests.py
tests/i18n/tests.py
+1
-1
tests.py
tests/test_client_regress/tests.py
+2
-2
tests.py
tests/timezones/tests.py
+1
-1
tests.py
tests/urlpatterns_reverse/tests.py
+4
-4
No files found.
django/core/cache/backends/base.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -259,7 +259,7 @@ class BaseCache(object):
return
version
+
delta
def
decr_version
(
self
,
key
,
delta
=
1
,
version
=
None
):
"""Sub
s
tracts delta from the cache version for the supplied key. Returns
"""Subtracts delta from the cache version for the supplied key. Returns
the new version.
"""
return
self
.
incr_version
(
key
,
-
delta
,
version
)
...
...
django/test/testcases.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -966,7 +966,7 @@ class TestCase(TransactionTestCase):
Similar to TransactionTestCase, but uses `transaction.atomic()` to achieve
test isolation.
In most situation
, TestCase should be prefe
red to TransactionTestCase as
In most situation
s, TestCase should be prefer
red to TransactionTestCase as
it allows faster execution. However, there are some situations where using
TransactionTestCase might be necessary (e.g. testing some transactional
behavior).
...
...
django/utils/encoding.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -223,7 +223,7 @@ def escape_uri_path(path):
# reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
# unreserved = alphanum | mark
# mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
# The list of safe characters here is constructed sub
s
tracting ";", "=",
# The list of safe characters here is constructed subtracting ";", "=",
# and "?" according to section 3.3 of RFC 2396.
# The reason for not subtracting and escaping "/" is that we are escaping
# the entire path, not a path segment.
...
...
django/utils/termcolors.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -144,7 +144,7 @@ DEFAULT_PALETTE = DARK_PALETTE
def
parse_color_setting
(
config_string
):
"""Parse a DJANGO_COLORS environment variable to produce the system palette
The general form of a pal
le
te definition is:
The general form of a pal
et
te definition is:
"palette;role=fg;role=fg/bg;role=fg,option,option;role=fg/bg,option,option"
...
...
@@ -156,7 +156,7 @@ def parse_color_setting(config_string):
option is a display options.
Specifying a named palette is the same as manually specifying the individual
definitions for each role. Any individual definitions following the pal
le
te
definitions for each role. Any individual definitions following the pal
et
te
definition will augment the base palette definition.
Valid roles:
...
...
tests/admin_utils/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -186,7 +186,7 @@ class UtilsTests(SimpleTestCase):
self
.
assertEqual
(
display_value
,
'12345'
)
@override_settings
(
USE_L10N
=
True
,
USE_THOUSAND_SEPARATOR
=
True
)
def
test_number_formats_with_thousand_sep
e
rator_display_for_field
(
self
):
def
test_number_formats_with_thousand_sep
a
rator_display_for_field
(
self
):
display_value
=
display_for_field
(
12345.6789
,
models
.
FloatField
(),
self
.
empty_value
)
self
.
assertEqual
(
display_value
,
'12,345.6789'
)
...
...
tests/db_functions/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -136,7 +136,7 @@ class FunctionTests(TestCase):
self
.
assertEqual
(
articles
.
first
()
.
last_updated
,
now
)
@skipIfDBFeature
(
'greatest_least_ignores_nulls'
)
def
test_greatest_prop
o
gates_null
(
self
):
def
test_greatest_prop
a
gates_null
(
self
):
now
=
timezone
.
now
()
Article
.
objects
.
create
(
title
=
"Testing with Django"
,
written
=
now
)
...
...
@@ -231,7 +231,7 @@ class FunctionTests(TestCase):
self
.
assertEqual
(
articles
.
first
()
.
first_updated
,
now
)
@skipIfDBFeature
(
'greatest_least_ignores_nulls'
)
def
test_least_prop
o
gates_null
(
self
):
def
test_least_prop
a
gates_null
(
self
):
now
=
timezone
.
now
()
Article
.
objects
.
create
(
title
=
"Testing with Django"
,
written
=
now
)
...
...
tests/foreign_object/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -292,7 +292,7 @@ class MultiColumnFKTests(TestCase):
self
.
assertQuerysetEqual
(
self
.
jane
.
friends
.
all
(),
[])
def
test_prefetch_related_m2m_foward_works
(
self
):
def
test_prefetch_related_m2m_fo
r
ward_works
(
self
):
Membership
.
objects
.
create
(
membership_country
=
self
.
usa
,
person
=
self
.
bob
,
group
=
self
.
cia
)
Membership
.
objects
.
create
(
membership_country
=
self
.
usa
,
person
=
self
.
jim
,
group
=
self
.
democrat
)
...
...
tests/i18n/test_extraction.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -143,7 +143,7 @@ class ExtractorTests(SerializeMixin, SimpleTestCase):
None can be passed for the line_number argument to skip checking of
the :42 suffix part.
A string token can also be pased as line_number, in which case it
A string token can also be pas
s
ed as line_number, in which case it
will be searched in the template, and its line number will be used.
A msgid is a suitable candidate.
"""
...
...
tests/i18n/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -1750,7 +1750,7 @@ class LocaleMiddlewareTests(TestCase):
LANGUAGES
=
[
(
'bg'
,
'Bulgarian'
),
(
'en-us'
,
'English'
),
(
'pt-br'
,
'Portugese (Brazil)'
),
(
'pt-br'
,
'Portug
u
ese (Brazil)'
),
],
MIDDLEWARE_CLASSES
=
[
'django.middleware.locale.LocaleMiddleware'
,
...
...
tests/test_client_regress/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -181,7 +181,7 @@ class AssertContainsTests(SimpleTestCase):
self
.
assertNotContains
(
r
,
ugettext_lazy
(
'never'
))
def
test_assert_contains_renders_template_response
(
self
):
""" Test that we can pass in an unrendered SimpleTemplateReponse
""" Test that we can pass in an unrendered SimpleTemplateRe
s
ponse
without throwing an error.
Refs #15826.
"""
...
...
@@ -198,7 +198,7 @@ class AssertContainsTests(SimpleTestCase):
self
.
assertContains
(
response
,
'Hello'
)
def
test_assert_not_contains_renders_template_response
(
self
):
""" Test that we can pass in an unrendered SimpleTemplateReponse
""" Test that we can pass in an unrendered SimpleTemplateRe
s
ponse
without throwing an error.
Refs #15826.
"""
...
...
tests/timezones/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -676,7 +676,7 @@ class SerializationTests(SimpleTestCase):
# Backend-specific notes:
# - JSON supports only milliseconds, microseconds will be truncated.
# - PyYAML dumps the UTC offset correctly for timezone-aware datetimes,
# but when it loads this representation, it sub
s
tracts the offset and
# but when it loads this representation, it subtracts the offset and
# returns a naive datetime object in UTC (http://pyyaml.org/ticket/202).
# Tests are adapted to take these quirks into account.
...
...
tests/urlpatterns_reverse/tests.py
Dosyayı görüntüle @
3ee18400
...
...
@@ -760,20 +760,20 @@ class NamespaceTests(SimpleTestCase):
"current_app should either match the whole path or shouldn't be used"
self
.
assertEqual
(
'/ns-included1/test4/inner/'
,
reverse
(
'inc-ns1:testapp:urlobject-view'
,
current_app
=
'non-exist
a
nt:test-ns3'
)
reverse
(
'inc-ns1:testapp:urlobject-view'
,
current_app
=
'non-exist
e
nt:test-ns3'
)
)
self
.
assertEqual
(
'/ns-included1/test4/inner/37/42/'
,
reverse
(
'inc-ns1:testapp:urlobject-view'
,
args
=
[
37
,
42
],
current_app
=
'non-exist
a
nt:test-ns3'
)
reverse
(
'inc-ns1:testapp:urlobject-view'
,
args
=
[
37
,
42
],
current_app
=
'non-exist
e
nt:test-ns3'
)
)
self
.
assertEqual
(
'/ns-included1/test4/inner/42/37/'
,
reverse
(
'inc-ns1:testapp:urlobject-view'
,
kwargs
=
{
'arg1'
:
42
,
'arg2'
:
37
},
current_app
=
'non-exist
a
nt:test-ns3'
)
current_app
=
'non-exist
e
nt:test-ns3'
)
)
self
.
assertEqual
(
'/ns-included1/test4/inner/+
%5
C$*/'
,
reverse
(
'inc-ns1:testapp:urlobject-special-view'
,
current_app
=
'non-exist
a
nt:test-ns3'
)
reverse
(
'inc-ns1:testapp:urlobject-special-view'
,
current_app
=
'non-exist
e
nt:test-ns3'
)
)
...
...
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