import json


def fake_data_set(tmpdir_factory):
    """Fake suggest api data set.

    Temp-file that contains the 'breakfast' data set.
    """
    data_set_content = [
        "Bacon", "Eggs", "Beans", "Sausage", "Veggie Sausage", "Orange Juice",
        "Tomato Juice", "Milk", "Baked Beans", "Black Sausage", "Mushrooms",
        "Shitaki Mushrooms", "Fried Bread", "Fried Eggs", "Scrambled Eggs",
        "Poached Eggs", "Omelette", "Toast", "Raisin Toast", "Croissant"
    ]
    ds = tmpdir_factory.mktemp('data').join('dataset.json')
    ds.write('making sure file is created')
    with open(str(ds), 'w') as f:
        json.dump(data_set_content, f)
    return ds