def test_reporting_disabled(venv): output = run(venv, 'namespace', set_tc_version=True, options="--no-teamcity") assert not has_service_messages(output)
def test_tc_reporting(venv): output = run(venv, 'namespace') assert has_service_messages(output)
def test_no_reporting_when_no_teamcity(venv): output = run(venv, 'namespace', set_tc_version=False) assert not has_service_messages(output)
def test_force_tc_reporting(venv): output = run(venv, 'namespace', options="--teamcity", set_tc_version=False) assert has_service_messages(output)