summaryrefslogtreecommitdiff
path: root/tests/test_runner_apps/sample
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_runner_apps/sample')
-rw-r--r--tests/test_runner_apps/sample/doctests.py1
-rw-r--r--tests/test_runner_apps/sample/pattern_tests.py1
-rw-r--r--tests/test_runner_apps/sample/tests/tests.py1
-rw-r--r--tests/test_runner_apps/sample/tests_sample.py5
4 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_runner_apps/sample/doctests.py b/tests/test_runner_apps/sample/doctests.py
index 8707ecaf86..a657d9bdf3 100644
--- a/tests/test_runner_apps/sample/doctests.py
+++ b/tests/test_runner_apps/sample/doctests.py
@@ -32,6 +32,7 @@ def factorial(n):
"""
import math
+
if not n >= 0:
raise ValueError("n must be >= 0")
if math.floor(n) != n:
diff --git a/tests/test_runner_apps/sample/pattern_tests.py b/tests/test_runner_apps/sample/pattern_tests.py
index f62a233d75..4500eacb8e 100644
--- a/tests/test_runner_apps/sample/pattern_tests.py
+++ b/tests/test_runner_apps/sample/pattern_tests.py
@@ -2,6 +2,5 @@ from unittest import TestCase
class Test(TestCase):
-
def test_sample(self):
self.assertEqual(1, 1)
diff --git a/tests/test_runner_apps/sample/tests/tests.py b/tests/test_runner_apps/sample/tests/tests.py
index 58bd4e7f1e..a9faf514f2 100644
--- a/tests/test_runner_apps/sample/tests/tests.py
+++ b/tests/test_runner_apps/sample/tests/tests.py
@@ -2,6 +2,5 @@ from unittest import TestCase
class Test(TestCase):
-
def test_sample(self):
pass
diff --git a/tests/test_runner_apps/sample/tests_sample.py b/tests/test_runner_apps/sample/tests_sample.py
index eb977e44fb..6e876ebd41 100644
--- a/tests/test_runner_apps/sample/tests_sample.py
+++ b/tests/test_runner_apps/sample/tests_sample.py
@@ -1,19 +1,18 @@
import doctest
from unittest import TestCase
-from django.test import SimpleTestCase, TestCase as DjangoTestCase
+from django.test import SimpleTestCase
+from django.test import TestCase as DjangoTestCase
from . import doctests
class TestVanillaUnittest(TestCase):
-
def test_sample(self):
self.assertEqual(1, 1)
class TestDjangoTestCase(DjangoTestCase):
-
def test_sample(self):
self.assertEqual(1, 1)