OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 # These strings are simulated responses to various conditions when querying | |
6 # the chromium issue tracker. | |
7 import os | |
8 | |
9 _current_directory = os.path.dirname(__file__) | |
10 _test_data_directory = os.path.join(_current_directory, 'test_data') | |
11 | |
12 CLOSED_ISSUE_DATA = open(os.path.join(_test_data_directory, | |
13 'closed.json')).read() | |
14 | |
15 OPEN_ISSUE_DATA = open(os.path.join(_test_data_directory, | |
16 'open.json')).read() | |
17 | |
18 UNEXPECTED_FORMAT_DATA = CLOSED_ISSUE_DATA.replace('issues$state', 'gibberish') | |
19 | |
20 BROKEN_ISSUE_DATA = "\n<HTML><HEAD><TITLE>Not a JSON Doc</TITLE></HEAD></HTML>" | |
qyearsley
2014/11/01 16:56:57
This could also go directly in crbug_query_test.py
RobertoCN
2014/11/02 07:48:35
Originally it contained the full text of the json
| |
OLD | NEW |