Exemple #1
0
def test_check_assembly_data4():
    """ assembly input out of bounds """
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_assembly_data(assembly_fail_4)
    assert str(
        err_info.value
    ) == 'assembly data for component 1 assembly data input in not in range of the BOM inputs'
Exemple #2
0
def test_check_assembly_data2():
    """ improper assembly input """
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_assembly_data(assembly_fail_2)
    assert str(
        err_info.value
    ) == 'assembly data for component 1 entry is improperly formated.'
Exemple #3
0
def test_check_assembly_data3():
    """ assembly input not a interger """
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_assembly_data(assembly_fail_3)
    assert str(
        err_info.value
    ) == 'assembly data for component 1 requires integer assembly data input'
Exemple #4
0
def test_check_assembly_data1():
    """ Assembly empty"""
    with pytest.raises(AssertionError) as err_info:
        PyDampCheck.check_assembly_data(assembly_fail_1)
    assert str(err_info.value) == 'Input file requires Assembly data input(s)'