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