Browse Source

Init

master
Johann Schmitz 5 years ago
parent
commit
9101dd7067
Signed by: ercpe GPG Key ID: A084064277C501ED
  1. 8
      Makefile
  2. 2
      src/maxd/__init__.py
  3. 10
      src/maxd/__main__.py
  4. 5
      tests/test_dummy.py

8
Makefile

@ -1,15 +1,15 @@
TARGET?=tests
test_default_python:
PYTHONPATH=".:./src" python tests/ -v
PYTHONPATH=".:./src" python -m pytest tests/
test_py2:
@echo Executing test with python2
PYTHONPATH=".:./src" python2 tests/ -v
PYTHONPATH=".:./src" python2 -m pytest tests/
test_py3:
@echo Executing test with python3
PYTHONPATH=".:./src" python3 tests/ -v
PYTHONPATH=".:./src" python3 -m pytest tests/
test: test_py2 test_py3
@ -23,7 +23,7 @@ compile_optimized:
coverage:
coverage erase
PYTHONPATH=".:./src" coverage run --source='src' --branch tests/__main__.py
PYTHONPATH=".:./src" coverage run --source='src' --branch -m py.test -qq tests/
coverage report -m
travis: compile compile_optimized test_default_python coverage

2
src/maxd/__init__.py

@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-

10
src/maxd/__main__.py

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
class Daemon(object):
def run(self):
pass
if __name__ == "__main__":
Daemon().run()

5
tests/test_dummy.py

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
class TestDummy(object):
def test_dummy(self):
assert True