tests/_helpers.py
def expect_failure(importer, exc_message=None):
    """Helper function to test if data imported failed."""
    with pytest.raises(Exception) as ex:
        importer.import_data()

    if exc_message is not None:
        assert exc_message in str(ex.value)
Helper function to test if data imported failed.
Helper function to test if data imported failed.
Helper function to test if data imported failed .
def expect_failure(importer, exc_message=None):
    with pytest.raises(Exception) as ex:
        importer.import_data()
    if exc_message is not None:
        assert exc_message in str(ex.value)
def expect_failure ( importer , exc_message = None ) : with pytest . raises ( Exception ) as ex : importer . import_data ( ) if exc_message is not None : assert exc_message in str ( ex . value )
Helper function to test if data imported failed.
Helper function to test if data imported failed .
"""Helper function to test if data imported failed."""
importer
exc_message