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
33d1dc2e
Kaydet (Commit)
33d1dc2e
authored
Nis 16, 2014
tarafından
Simon Charette
Kaydeden (comit)
Tim Graham
Nis 20, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Fixed flake8 warnings introduced in recent commits.
Backport of
79f05616
from master
üst
9e86c3f0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
5 deletions
+3
-5
base.py
django/db/backends/postgresql_psycopg2/base.py
+0
-2
tests.py
tests/prefetch_related/tests.py
+1
-1
doctests.py
tests/test_discovery_sample/doctests.py
+2
-1
test_discover_runner.py
tests/test_runner/test_discover_runner.py
+0
-1
No files found.
django/db/backends/postgresql_psycopg2/base.py
Dosyayı görüntüle @
33d1dc2e
...
@@ -4,8 +4,6 @@ PostgreSQL database backend for Django.
...
@@ -4,8 +4,6 @@ PostgreSQL database backend for Django.
Requires psycopg 2: http://initd.org/projects/psycopg2
Requires psycopg 2: http://initd.org/projects/psycopg2
"""
"""
import
sys
from
django.conf
import
settings
from
django.conf
import
settings
from
django.db.backends
import
(
BaseDatabaseFeatures
,
BaseDatabaseWrapper
,
from
django.db.backends
import
(
BaseDatabaseFeatures
,
BaseDatabaseWrapper
,
BaseDatabaseValidation
)
BaseDatabaseValidation
)
...
...
tests/prefetch_related/tests.py
Dosyayı görüntüle @
33d1dc2e
...
@@ -1066,7 +1066,7 @@ class Ticket21760Tests(TestCase):
...
@@ -1066,7 +1066,7 @@ class Ticket21760Tests(TestCase):
for
_
in
range
(
3
):
for
_
in
range
(
3
):
house
=
House
.
objects
.
create
()
house
=
House
.
objects
.
create
()
for
_
in
range
(
3
):
for
_
in
range
(
3
):
self
.
rooms
.
append
(
Room
.
objects
.
create
(
house
=
house
))
self
.
rooms
.
append
(
Room
.
objects
.
create
(
house
=
house
))
#@override_settings(DEBUG=True)
#@override_settings(DEBUG=True)
def
test_bug
(
self
):
def
test_bug
(
self
):
...
...
tests/test_discovery_sample/doctests.py
Dosyayı görüntüle @
33d1dc2e
...
@@ -3,6 +3,7 @@ Doctest example from the official Python documentation.
...
@@ -3,6 +3,7 @@ Doctest example from the official Python documentation.
https://docs.python.org/3/library/doctest.html
https://docs.python.org/3/library/doctest.html
"""
"""
def
factorial
(
n
):
def
factorial
(
n
):
"""Return the factorial of n, an exact integer >= 0.
"""Return the factorial of n, an exact integer >= 0.
...
@@ -35,7 +36,7 @@ def factorial(n):
...
@@ -35,7 +36,7 @@ def factorial(n):
raise
ValueError
(
"n must be >= 0"
)
raise
ValueError
(
"n must be >= 0"
)
if
math
.
floor
(
n
)
!=
n
:
if
math
.
floor
(
n
)
!=
n
:
raise
ValueError
(
"n must be exact integer"
)
raise
ValueError
(
"n must be exact integer"
)
if
n
+
1
==
n
:
# catch a value like 1e300
if
n
+
1
==
n
:
# catch a value like 1e300
raise
OverflowError
(
"n too large"
)
raise
OverflowError
(
"n too large"
)
result
=
1
result
=
1
factor
=
2
factor
=
2
...
...
tests/test_runner/test_discover_runner.py
Dosyayı görüntüle @
33d1dc2e
...
@@ -105,7 +105,6 @@ class DiscoverRunnerTest(TestCase):
...
@@ -105,7 +105,6 @@ class DiscoverRunnerTest(TestCase):
def
test_testcase_ordering
(
self
):
def
test_testcase_ordering
(
self
):
suite
=
DiscoverRunner
()
.
build_suite
([
"test_discovery_sample/"
])
suite
=
DiscoverRunner
()
.
build_suite
([
"test_discovery_sample/"
])
tc_names
=
[
case
.
__class__
.
__name__
for
case
in
suite
.
_tests
]
self
.
assertEqual
(
self
.
assertEqual
(
suite
.
_tests
[
0
]
.
__class__
.
__name__
,
suite
.
_tests
[
0
]
.
__class__
.
__name__
,
'TestDjangoTestCase'
,
'TestDjangoTestCase'
,
...
...
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