Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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/*
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
requests==2.22.0
ConfigArgParse==0.15.1
progress==1.5
14 changes: 14 additions & 0 deletions tests/test_crawler.py
Original file line number Diff line number Diff line change
@@ -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()