added check for valid code on spiders

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40366
This commit is contained in:
samus_ 2008-11-08 12:26:54 +00:00
parent 5e54ac52ff
commit 3e88890bc3
1 changed files with 13 additions and 0 deletions

View File

@ -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()