Skip to content

Commit

Permalink
Merge pull request #62 from cverna/add_tox_support
Browse files Browse the repository at this point in the history
Add support for tox runner
  • Loading branch information
cverna authored Jan 25, 2019
2 parents bf8ab1c + be274db commit ddd3f7f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 123 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*.db
dist
build
.tox
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ datanommer.models
zope.sqlalchemy
requests
dogpile.cache
psutil
moksha
2 changes: 1 addition & 1 deletion tests/test_complicated_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_complicated_trigger_against_partial_mismatch(self):
log = logging.getLogger('moksha.hub')
log.error = Mock()
eq_(self.rule.matches(msg), set())
log.error.assert_called_once()
log.error.assert_called()

@patch('datanommer.models.Message.grep')
@patch('tahrir_api.dbapi.TahrirDatabase.get_person')
Expand Down
109 changes: 0 additions & 109 deletions tests/test_criteria_pkgdb.py

This file was deleted.

1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class MockHub(object):
),
},
"datanommer.sqlalchemy.url": "sqlite://",
"validate_signatures":"False"
}

def subscribe(self, topic, callback):
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tox]
envlist = py27

[testenv]
deps = .[test]
commands = python setup.py test
passenv = HOME

0 comments on commit ddd3f7f

Please sign in to comment.