def test_check_employer1(): """ Non - String Input """ with pytest.raises(AssertionError) as err_info: PyDampCheck.check_employer(employer_fail_1) assert str(err_info.value) == 'Input file requires character input'
def test_check_employer2(): """ Forced string input but is integer """ with pytest.raises(AssertionError) as err_info: PyDampCheck.check_employer(employer_fail_2) assert str(err_info.value) == 'Input file requires character input'
def test_check_employer3(): """ Empty Input """ with pytest.raises(AssertionError) as err_info: PyDampCheck.check_employer(employer_fail_3) assert str(err_info.value) == 'Input file requires employer name'