diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-08 12:09:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-08 12:15:38 +0100 |
| commit | 6a682b38e75d4c975b4c4493565a59f1bc14397c (patch) | |
| tree | 0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/test_runner_apps/sample | |
| parent | e73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff) | |
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
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) |
