Exemplo n.º 1
0
def test_correct_turbines():
    array = CustomArraySystemDesign(config_incorrect_turbines)

    with pytest.raises(ValueError):
        array.run()
Exemplo n.º 2
0
def test_incomplete_optional_columns():
    array = CustomArraySystemDesign(config_incomplete_optional)

    with pytest.warns(UserWarning):
        array.run()
Exemplo n.º 3
0
def test_duplicate_turbine_coordinates():
    array = CustomArraySystemDesign(config_duplicate_coordinates)

    with pytest.raises(ValueError):
        array.run()
Exemplo n.º 4
0
def test_incomplete_required_columns():
    array = CustomArraySystemDesign(config_incomplete_required)

    with pytest.raises(ValueError):
        array.run()
Exemplo n.º 5
0
def test_missing_columns():
    array = CustomArraySystemDesign(config_missing_col)

    with pytest.raises(ValueError):
        array.run()