Skip to content

Commit 4a4b4e2

Browse files
committed
Try to fix broken test - still one more test and again...
1 parent 699afd3 commit 4a4b4e2

File tree

3 files changed

+300
-146
lines changed

3 files changed

+300
-146
lines changed

test/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ mock
2121
pytest
2222
pytest-cov
2323

24+
# Freeze the time -)
25+
freezegun
26+
2427
coverage
2528

2629
# Report coverage results to codecov.io

test/run_tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test/modules/livestatus # we
1212
echo "Python path: '$PYTHONPATH' ..."
1313

1414
cd "$cur_dir"/test/tmp/shinken/test
15-
#nosetests -vx --process-restartworker --processes=1 --process-timeout=1800 "$cur_dir"/test/test*.py
16-
pytest -v --no-print-logs "$cur_dir"/test/test*.py
15+
pytest -vv --durations=0 --no-print-logs --cov="$cur_dir"/module --cov-config "$cur_dir"/test/.coveragerc "$cur_dir"/test/test_*.py
1716

1817
cd "$cur_dir"/test

0 commit comments

Comments
 (0)