Move floating cpsboe test assert into a function
An assert testing the amount of events parsed had been left floating,
moved it into a named function.
@@ -8,6 +8,8 @@ test_response = file_response('files/cpsboe.html')
spider = CpsboeSpider()
parsed_items = [item for item in spider.parse(test_response) if isinstance(item, dict)]
+
+def test_event_count():
assert len(parsed_items) == 14
@pytest.mark.parametrize('item', parsed_items)
