mirror of https://github.com/scrapy/scrapy.git
added check for valid code on spiders
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40366
This commit is contained in:
parent
5e54ac52ff
commit
3e88890bc3
|
|
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue