Only execute code in getpsi.py if the script is called. Import getpsi.py into test script.
Add mongo db init tests. Add tests to check if NEA website should be polled. Use the mongomock module to mock the data needed.
Add and use db_init() function. Start refactoring check function for determining if NEA website should be polled.
Add mongo dependencies to .travis.yml
Start mongodb service and add a user in travis.
Finish function to check if it's time to poll NEA's website.
Make use of should_poll_nea() in main program logic.
Get HTML of PSI website
Update travis to set timezone to SGP time.
Shorten travis sleep time.
Add BeautifulSoup dependency install to .travis.yml
Refactor out function to substring html given input, start and end strings.
Use this function when parsing the day from the table headings.

Add tests for substr_html().
Add some extra files to .gitignore
Write functions to extract data from PSI 3 hour HTML table using BeautifulSoup and some regex. Write tests to test the functions for these features. Add an entire PSI webpage as test data.
Use refactored functions to get 3 hour PSI data into a list. Remove the isdigit() check from the insertion loop as the list elements have already been converted to int.
Merge pull request #3 from fonglh/refactor

Refactor