Exemplo n.º 1
0
def test_parse_pytest_nodeid():
    nodeid = 'tests/test_report_plugin.py::DummyTestCase::test_assert'

    blocks = parse_nodeid(nodeid)
    assert 'tests/test_report_plugin.py' == blocks['test_module']
    assert 'DummyTestCase' == blocks['test_case']
    assert 'test_assert' == blocks['func']
Exemplo n.º 2
0
def test_parse_pytest_nodeid():
    nodeid = 'tests/test_report_plugin.py::DummyTestCase::test_assert'

    blocks = parse_nodeid(nodeid)
    assert 'tests/test_report_plugin.py' == blocks['test_module']
    assert 'DummyTestCase' == blocks['test_case']
    assert 'test_assert' == blocks['func']
Exemplo n.º 3
0
def test_parse_pytest_nodeid_func():
    nodeid = 'tests/test_report_plugin.py::test_pytest_report_teststatus'

    blocks = parse_nodeid(nodeid)
    assert 'tests/test_report_plugin.py' == blocks['test_module']
    assert 'test_pytest_report_teststatus' == blocks['func']
Exemplo n.º 4
0
def test_parse_pytest_nodeid_func():
    nodeid = 'tests/test_report_plugin.py::test_pytest_report_teststatus'

    blocks = parse_nodeid(nodeid)
    assert 'tests/test_report_plugin.py' == blocks['test_module']
    assert 'test_pytest_report_teststatus' == blocks['func']