We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8fb3ca8 + 90615fb commit 789ba72Copy full SHA for 789ba72
.travis.yml
@@ -0,0 +1,11 @@
1
+language: python
2
+python:
3
+ - "3.6"
4
+
5
+# command to install dependencies
6
+install:
7
+ - pip install -r requirements.txt
8
9
+# command to run tests
10
+script:
11
+ python -m unittest tests/*
requirements.txt
@@ -0,0 +1,3 @@
+requests==2.22.0
+ConfigArgParse==0.15.1
+progress==1.5
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)
12
13
+if __name__ == '__main__':
14
+ unittest.main()
0 commit comments