Пример #1
0
def test_check(item, params, expected):
    assert expected == list(
        oracle_tablespaces.check_oracle_tablespaces(
            item,
            type_defs.Parameters(params),
            Section,
        ))
Пример #2
0
def test_check_raises():
    with pytest.raises(IgnoreResultsError):
        list(oracle_tablespaces.check_oracle_tablespaces(
            "item.not.sent",
            {},
            Section,
        ))
Пример #3
0
def test_check_raises():
    with pytest.raises(IgnoreResultsError):
        list(
            oracle_tablespaces.check_oracle_tablespaces(
                "item.not.sent",
                type_defs.Parameters({}),
                Section,
            ))