MCPcopy
hub / github.com/mikf/gallery-dl / test_categories

Method test_categories

test/test_extractor.py:113–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111
112 @unittest.skipIf(not results, "no test data")
113 def test_categories(self):
114 for result in results.all():
115 if result.get("#fail"):
116 try:
117 self.assertCategories(result)
118 except AssertionError:
119 pass
120 else:
121 self.fail(f"{result['#url']}: Test did not fail")
122 else:
123 self.assertCategories(result)
124
125 def assertCategories(self, result):
126 url = result["#url"]

Callers

nothing calls this directly

Calls 2

assertCategoriesMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected