From 9c19aff7c7561e3a82978a272ecdaad40dda5c00 Mon Sep 17 00:00:00 2001 From: django-bot Date: Thu, 3 Feb 2022 20:24:19 +0100 Subject: Refs #33476 -- Reformatted code with Black. --- tests/test_runner_apps/sample/doctests.py | 1 + tests/test_runner_apps/sample/pattern_tests.py | 1 - tests/test_runner_apps/sample/tests/tests.py | 1 - tests/test_runner_apps/sample/tests_sample.py | 5 ++--- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/test_runner_apps/sample') 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) -- cgit v1.3