Commit 3506ffdd authored by aiolos's avatar aiolos Committed by Commit bot

Move archive related unittest data into it's own folder.

BUG=447462

Review URL: https://codereview.chromium.org/838383002

Cr-Commit-Position: refs/heads/master@{#310718}
parent 3dd2edf4
......@@ -35,7 +35,8 @@ class MockPage(page_module.Page):
class MockPageSet(page_set_module.PageSet):
def __init__(self, url=''):
super(MockPageSet, self).__init__(archive_data_file='data/test.json')
super(MockPageSet, self).__init__(
archive_data_file='data/archive_files/test.json')
self.AddUserStory(MockPage(self, url))
......
......@@ -450,7 +450,7 @@ class UserStoryRunnerTest(unittest.TestCase):
uss.archive_data_file, uss.wpr_archive_info, uss.user_stories))
uss = user_story_set.UserStorySet(
archive_data_file='../../unittest_data/test.json',
archive_data_file='../../unittest_data/archive_files/test.json',
cloud_storage_bucket=cloud_storage.PUBLIC_BUCKET)
uss.AddUserStory(page_module.Page(
'http://www.testurl.com', uss, uss.base_dir))
......
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"test_000.wpr": [
"http://www.testurl.com"
......
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"test_000.wpr": [
"http://www.testurl.com"
......
......@@ -16,7 +16,7 @@ class TestPageSet(page_set.PageSet):
def __init__(self):
super(TestPageSet, self).__init__(
archive_data_file='data/test.json',
archive_data_file='data/archive_files/test.json',
credentials_path='data/credential',
user_agent_type='desktop',
bucket=page_set.PUBLIC_BUCKET)
......
......@@ -8,6 +8,6 @@ from telemetry.page.page_set import PageSet
class TestSimpleOnePageSet(PageSet):
def __init__(self):
super(TestSimpleOnePageSet, self).__init__(
archive_data_file='data/test.json',
archive_data_file='data/archive_files/test.json',
credentials_path='data/credential',
user_agent_type='desktop')
......@@ -8,6 +8,6 @@ from telemetry.page.page_set import PageSet
class TestSimpleTwoPageSet(PageSet):
def __init__(self):
super(TestSimpleTwoPageSet, self).__init__(
archive_data_file='data/test.json',
archive_data_file='data/archive_files/test.json',
credentials_path='data/credential',
user_agent_type='desktop')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment