import os
from pages.event_page.fixtures.helpers.create_fixture import create_fixture
import pages.event_page.fixtures.helpers.components as components


# An event page at a city_location
def at_city_location():
    location_blocks = components.city_location_block()
    # home() must be invoked after a foreign location_page is created in components.city_location_block()
    home = components.home()
    page_data = {
        "imported_revision_id": None,
        "live": False,
        "parent": home,
        "coa_global": False,
        "title": "Event at city location",
        "slug": "event-at-city-location",
        "registration_url": "http://google.com",
        "event_is_free": True,
        "description": "This event is at a City Location.",
        "date": '2020-03-10',
        "start_time": '14:00:00',
        "end_time": '15:00:00',
        "location_blocks": location_blocks,
    }

    return create_fixture(page_data, os.path.basename(__file__))

import os
from pages.event_page.fixtures.helpers.create_fixture import create_fixture
import pages.event_page.fixtures.helpers.components as components


# An event page at a city_location
def at_city_location():
    location_blocks = components.city_location_block()
    # home() must be invoked after a foreign location_page is created in components.city_location_block()
    home = components.home()
    page_data = {
        "imported_revision_id": None,
        "live": False,
        "parent": home,
        "coa_global": False,
        "title": "Event at city location",
        "slug": "event-at-city-location",
        "registration_url": "http://google.com",
        "event_is_free": True,
        "description": "This event is at a City Location.",
        "date": '2020-03-10',
        "start_time": '14:00:00',
        "end_time": '15:00:00',
        "location_blocks": location_blocks,
    }

    return create_fixture(page_data, os.path.basename(__file__))

# An event page at a city_location # home() must be invoked after a foreign location_page is created in components.city_location_block()