diff options
author | 2019-10-13 11:36:06 +0200 | |
---|---|---|
committer | 2019-10-13 11:36:06 +0200 | |
commit | 776861636dbd180b8ad0bcc9540d935afaf2b873 (patch) | |
tree | 053c0dbf2ce1c6d12d45405afe5abc1dc9be6531 /tests | |
parent | Move `tests.test_resources` to `unittest`. (diff) |
Add subTest + move test_resource to resources subdir
I've added a `self.subTest` to the `name` loop so we still test and
get output for all names in the list if one of them fails the test.
In addition, I've moved it to the `tests/bot/resources` subdirectory.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/resources/test_resources.py (renamed from tests/test_resources.py) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_resources.py b/tests/bot/resources/test_resources.py index 2fc36c697..73937cfa6 100644 --- a/tests/test_resources.py +++ b/tests/bot/resources/test_resources.py @@ -13,4 +13,5 @@ class ResourceValidationTests(unittest.TestCase): self.assertIsInstance(data, list) for name in data: - self.assertIsInstance(name, str) + with self.subTest(name=name): + self.assertIsInstance(name, str) |