def mkfile(tmp_dir, filename: str, data: str):
    """
    Test utility function to create tmp files
    """
    file = tmp_dir.join(filename)
    with open(file.strpath, "w", encoding="utf-8") as f:
        f.write(data)
    return file

    Test utility function to create tmp files
    
tests/test_base.py