Пример #1
0
def test_type_required_validation():
    """Test to validate type while adding a provider"""
    prov = InfraProvider()
    with error.expected(FlashMessageException):
        prov.create()

    view = prov.create_view(ProviderAddView)
    assert not view.add.active
def test_type_required_validation_infra():
    """Test to validate type while adding a provider"""
    prov = InfraProvider()
    with pytest.raises(AssertionError):
        prov.create()

    view = prov.create_view(InfraProviderAddView)
    assert not view.add.active
Пример #3
0
def test_type_required_validation_infra():
    """Test to validate type while adding a provider"""
    prov = InfraProvider()
    with pytest.raises(AssertionError):
        prov.create()

    view = prov.create_view(InfraProviderAddView)
    assert not view.add.active