コード例 #1
0
def test_smoke(venv):
    output = run(venv)

    ms = parse_service_messages(output)

    assert ms[0] >= ServiceMessage('testStarted', {'name': 'test_smoke.SmokeTestCase.test_xxx (XXX identity)'})
    assert ms[1] >= ServiceMessage('testFinished', {'name': 'test_smoke.SmokeTestCase.test_xxx (XXX identity)'})
コード例 #2
0
def test_no_reporting_without_explicit_option(venv):
    output = run(venv, options="")

    ms = parse_service_messages(output)
    assert len(ms) == 0

    assert output.find("E302") > 0
    assert output.find("W391") > 0
コード例 #3
0
def test_flake8_v3_no_reporting_without_explicit_option_and_tc_env(venv_flake8_v3):
    output = run(venv_flake8_v3, options="", set_tc_version=False)

    ms = parse_service_messages(output)
    assert len(ms) == 0

    assert output.find("E302") > 0
    assert output.find("W391") > 0
コード例 #4
0
def test_flake8_v3_no_reporting_without_explicit_option_and_tc_env(venv_flake8_v3):
    output = run(venv_flake8_v3, options="", set_tc_version=False)

    ms = parse_service_messages(output)
    assert len(ms) == 0

    assert output.find("E302") > 0
    assert output.find("W391") > 0
コード例 #5
0
def test_smoke(venv):
    output = run(venv)

    ms = parse_service_messages(output)

    assert ms[0] >= ServiceMessage(
        'testStarted',
        {'name': 'test_smoke.SmokeTestCase.test_xxx (XXX identity)'})
    assert ms[1] >= ServiceMessage(
        'testFinished',
        {'name': 'test_smoke.SmokeTestCase.test_xxx (XXX identity)'})