Skip to content
Snippets Groups Projects
__init__.py 275 B
Newer Older
'''
Utility functions for tests.
'''

import os


def data_path(name):
    '''
    Return the absolute path to a file in the test/data directory.
    The name specified should be relative to test/data.
    '''
    return os.path.join(os.path.dirname(__file__), "data", name)