Skip to content

Commit

Permalink
Merge pull request #26 from akosiaris/ditch_tox
Browse files Browse the repository at this point in the history
Ditch tox
  • Loading branch information
akosiaris committed Jun 9, 2023
2 parents f23a53c + 18e9ecf commit eab3b41
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 46 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m pip install -e .
pytest
5 changes: 1 addition & 4 deletions tests/test_collectd_transmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
# Monkey patching the collectd module to facilitate testing
mock_collectd = mock.MagicMock()
sys.modules['collectd'] = mock_collectd

# This is a hack to force tests to use the in-repo version of the module and not
# the one installed by tox
sys.path.insert(0, '.')
import collectd_transmission # pylint: disable=wrong-import-position



class MethodTestCase(unittest.TestCase):
'''
Testing methods
Expand Down
42 changes: 0 additions & 42 deletions tox.ini

This file was deleted.

0 comments on commit eab3b41

Please sign in to comment.