Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

added check for valid code on spiders

samus_3e88890bc3c4
diff --git a/scrapy/trunk/scrapy/tests/test_load_spiders.py b/scrapy/trunk/scrapy/tests/test_load_spiders.py
new file mode 100644
index 000000000..6e0fa726d
--- /dev/null
+++ b/scrapy/trunk/scrapy/tests/test_load_spiders.py
@@ -0,0 +1,13 @@
+from unittest import TestCase, main
+from scrapy.spider import spiders
+
+class ScrapySpidersTest(TestCase):
+ def test_load_spiders(self):
+ """ Simple test that forces to load the spiders
+ checks for syntax errors that block the whole framework
+ """
+ spiders.asdict()
+
+if __name__ == "__main__":
+ main()
+