Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tests/test_packagerWebExt.py

Issue 29968555: Issue 7145 - Change manifest name for release builds
Patch Set: Updated tests Created Dec. 29, 2018, 5:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/expecteddata/manifest_gecko_release_build.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 import difflib 5 import difflib
6 import json 6 import json
7 import os 7 import os
8 import re 8 import re
9 import shutil 9 import shutil
10 import zipfile 10 import zipfile
(...skipping 14 matching lines...) Expand all
25 'message': 'Ensuring dict-copy from modules for $domain$', 25 'message': 'Ensuring dict-copy from modules for $domain$',
26 'description': 'test description', 26 'description': 'test description',
27 'placeholders': {'content': '$1', 'example': 'www.adblockplus.org'}, 27 'placeholders': {'content': '$1', 'example': 'www.adblockplus.org'},
28 }, 28 },
29 } 29 }
30 30
31 ALL_LANGUAGES = ['en_US', 'de', 'it'] 31 ALL_LANGUAGES = ['en_US', 'de', 'it']
32 32
33 MESSAGES_EN_US = json.dumps({ 33 MESSAGES_EN_US = json.dumps({
34 'name': {'message': 'Adblock Plus'}, 34 'name': {'message': 'Adblock Plus'},
35 'name_releasebuild': {'message': 'Adblock Plus - free ad blocker'},
35 'name_devbuild': {'message': 'Adblock Plus development build'}, 36 'name_devbuild': {'message': 'Adblock Plus development build'},
36 'description': { 37 'description': {
37 'message': 'Adblock Plus is the most popular ad blocker ever, ' 38 'message': 'Adblock Plus is the most popular ad blocker ever, '
38 'and also supports websites by not blocking ' 39 'and also supports websites by not blocking '
39 'unobstrusive ads by default (configurable).', 40 'unobstrusive ads by default (configurable).',
40 }, 41 },
41 }) 42 })
42 43
43 44
44 class Content(object): 45 class Content(object):
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 expected = os.path.join( 496 expected = os.path.join(
496 os.path.dirname(__file__), 497 os.path.dirname(__file__),
497 'expecteddata', 498 'expecteddata',
498 filename.format(name, ext), 499 filename.format(name, ext),
499 ) 500 )
500 501
501 assert_manifest_content( 502 assert_manifest_content(
502 package.read(os.path.join(folder, '{}.{}'.format(name, ext))), 503 package.read(os.path.join(folder, '{}.{}'.format(name, ext))),
503 expected, 504 expected,
504 ) 505 )
OLDNEW
« no previous file with comments | « tests/expecteddata/manifest_gecko_release_build.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld