Exemple #1
0
def waypoint_diff_mock(url, request):
    if '292856' in url.path:
        return handle_mock_request(
            request,
            os.path.join(base_path, 'data', 'waypoint_archive2.json'),
            'W/"117982-fr-1-292856"')
    else:
        return handle_mock_request(
            request,
            os.path.join(base_path, 'data', 'waypoint_archive.json'),
            'W/"117982-fr-1-131565"')
Exemple #2
0
def area_detail_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'area.json'),
        'W/"735574-fr-1"')
Exemple #3
0
def waypoint_detail_merged_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'waypoint_merged.json'),
        'W/"123456-fr-1"')
Exemple #4
0
def waypoint_history_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'route_history.json'),
        'W/"735553-fr-1"')
Exemple #5
0
def waypoint_detail_new_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'waypoint.json'),
        'W/"117982-fr-2"')
Exemple #6
0
def waypoint_archive_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'waypoint_archive.json'),
        'W/"117982-fr-1-131565"')
Exemple #7
0
def route_detail_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'route.json'),
        'W/"736901-ca-1"')
Exemple #8
0
def route_archive_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'route_archive.json'),
        'W/"735553-fr-1-1162880"')
Exemple #9
0
def health_mock(url, request):
    return handle_mock_request(request,
                               os.path.join(base_path, 'data', 'health.json'),
                               'no-etag')
Exemple #10
0
def profile_info_new_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'profile_info.json'),
        'W/"123-fr-3"')
Exemple #11
0
def sitemap_waypoints_mock_new(url, request):
    return handle_mock_request(
        request, os.path.join(base_path, 'data', 'sitemaps_w_0.json'),
        'W/"w-0-2016-10-27-6f3efb9"')
Exemple #12
0
def sitemap_index_mock_new(url, request):
    return handle_mock_request(
        request, os.path.join(base_path, 'data', 'sitemap_index.json'),
        'W/"2016-10-27-6f3efb9"')
Exemple #13
0
def outing_archive_mock(url, request):
    return handle_mock_request(
        request,
        os.path.join(base_path, 'data', 'outing_archive.json'),
        'W/"735574-fr-1-1163060"')