Skip to content

Commit

Permalink
Configure Travis & Nose Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgurrola committed Aug 4, 2019
1 parent a7ebe79 commit bb2f43d
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,3 @@ ENV/

# IDE Stuff
.idea

# Test Auth Config
tests/config.ini
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
language: python
cache: pip

python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'

services:
- mongodb

matrix:
fast_finish: true
include:
- python: 3.7
dist: xenial

env:
global:
- FOO=1

install:
- pip install -r requirements.txt --use-mirrors
- pip install coveralls

before_script:
- sleep 15
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'

script:
#- python setup.py build_tests || python setup.py egg_info; python selftest.py
- nosetests -v --with-coverage

after_success:
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then coveralls; fi

before_deploy:
- pip install twine
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pymongo==3.6.1
pymongo>=3.6.1
9 changes: 3 additions & 6 deletions tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def test_find():
print('removing document...')
manager.remove(fetched)

assert True


def test_page():
# Connection
Expand All @@ -76,9 +78,4 @@ def test_page():
for test in page:
print(test)


if __name__ == '__main__':
try:
test_page()
except KeyboardInterrupt:
print('\nGoodbye!')
assert True
7 changes: 0 additions & 7 deletions tests/test_simple.py

This file was deleted.

0 comments on commit bb2f43d

Please sign in to comment.