diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..62eaa2a8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: python +python: + - "3.6" + +# command to install dependencies +install: + - pip install -r requirements.txt + +# command to run tests +script: + python -m unittest tests/* \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..a39f0ec9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +requests==2.22.0 +ConfigArgParse==0.15.1 +progress==1.5 \ No newline at end of file diff --git a/tests/test_crawler.py b/tests/test_crawler.py new file mode 100644 index 00000000..b5c0d758 --- /dev/null +++ b/tests/test_crawler.py @@ -0,0 +1,14 @@ +import unittest +from hsc import crawler + +class TestCrawler(unittest.TestCase): + + def setUp(self): + self.crawler_obj = crawler.Crawler() + + def test_crawler_obj_is_not_none(self): + self.assertIsNotNone(self.crawler_obj) + + +if __name__ == '__main__': + unittest.main()