diff --git a/Makefile b/Makefile index f50b0ae..a384f57 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ export RADICALE_BACKEND := filesystem export REQUIREMENTS := release export TESTSERVER_BASE := ./tests/storage/servers/ export CI := false +export COVERAGE := $(CI) export DETERMINISTIC_TESTS := false all: @@ -32,7 +33,7 @@ install-test: install-servers test: set -e; \ - if [ "$(CI)" = "true" ]; then \ + if [ "$(COVERAGE)" = "true" ]; then \ py.test --cov-config .coveragerc; \ else \ py.test; \ diff --git a/tests/unit/utils/test_vobject.py b/tests/unit/utils/test_vobject.py index 236cb55..587bb3d 100644 --- a/tests/unit/utils/test_vobject.py +++ b/tests/unit/utils/test_vobject.py @@ -308,7 +308,7 @@ class VobjectMachine(RuleBasedStateMachine): params=st.lists(st.tuples(value_strategy, value_strategy))) def add_prop_raw(self, c, key, value, params): params_str = ','.join(k + '=' + v for k, v in params) - c.props.append('{};{}:{}'.format(key, params_str, value)) + c.props.insert(0, '{};{}:{}'.format(key, params_str, value)) assert c[key] == value assert key in c assert c.get(key) == value