diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/test_runner_apps/sample | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/test_runner_apps/sample')
| -rw-r--r-- | tests/test_runner_apps/sample/doctests.py | 1 | ||||
| -rw-r--r-- | tests/test_runner_apps/sample/pattern_tests.py | 1 | ||||
| -rw-r--r-- | tests/test_runner_apps/sample/tests/tests.py | 1 | ||||
| -rw-r--r-- | tests/test_runner_apps/sample/tests_sample.py | 5 |
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) |
