Example #1
0
def test_csv_existance():
    assert ".csv" in filehandling.checkfiletype("Test.csv")
Example #2
0
def test_checkfiletype_excel():
    assert ".xls" in filehandling.checkfiletype("Test.xls")
Example #3
0
def test_checkfiletype_notsupport():
    with pytest.raises(SystemExit) as pytest_wrapped_e:
        filehandling.checkfiletype("Test.txt")
    assert pytest_wrapped_e.type == SystemExit
Example #4
0
def test_checkfiletype_csv():
    assert ".csv" in filehandling.checkfiletype("Test.csv")