mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +03:00
Fix test
This commit is contained in:
parent
b207df4ebb
commit
5c331884c3
|
@ -140,9 +140,11 @@ def test_save_and_load_knowledge_base():
|
||||||
|
|
||||||
class TestToDiskResourceWarningUnittest(TestCase):
|
class TestToDiskResourceWarningUnittest(TestCase):
|
||||||
def test_resource_warning(self):
|
def test_resource_warning(self):
|
||||||
scenarios = zip(*[x() for x in objects_to_test]) # type: ignore
|
items = [x() for x in objects_to_test[0]]
|
||||||
|
names = objects_to_test[1]
|
||||||
|
scenarios = zip(items, names)
|
||||||
|
|
||||||
for scenario in scenarios:
|
for item, name in scenarios:
|
||||||
with self.subTest(msg=scenario[1]):
|
with self.subTest(msg=name):
|
||||||
warnings_list = write_obj_and_catch_warnings(scenario[0])
|
warnings_list = write_obj_and_catch_warnings(item)
|
||||||
self.assertEqual(len(warnings_list), 0)
|
self.assertEqual(len(warnings_list), 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user