mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Makefile: new coverage param
This commit is contained in:
parent
413e2de45d
commit
e54f5b89a3
2 changed files with 3 additions and 2 deletions
3
Makefile
3
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; \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue