def test_init_not_qvd_or_bad_file(): with pytest.raises(BadFormat): qvd = QvdFile(__file__)
def bigqvd(): """ standard setup for tests with bigger qvd""" yield QvdFile("data/tab2.qvd")
def test_init_no_file(): with pytest.raises(FileNotFoundError): qvd = QvdFile("data/no_such_file.qvd")
def qvd(): """ standard setup for most of the tests """ yield QvdFile("data/tab1.qvd")