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

Side by Side Diff: tests/conftest.py

Issue 29501558: Issue 5383 - Add tests for the Chrome and Firefox packagers (Closed)
Patch Set: Reuploading binary files after upload.py patch Created Sept. 8, 2017, 10:22 a.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/chrome_rsa.pem ('k') | tests/expecteddata/manifest_chrome_build.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 import json
6
7 import pytest
8
9
10 ALL_LANGUAGES = ['en_US', 'de', 'it']
11
12 MESSAGES_EN_US = json.dumps({
13 'name': {'message': 'Adblock Plus'},
14 'name_devbuild': {'message': 'devbuild-marker'},
15 'description': {
16 'message': 'Adblock Plus is the most popular ad blocker ever, '
17 'and also supports websites by not blocking '
18 'unobstrusive ads by default (configurable).'
19 },
20 })
21
22
23 @pytest.fixture
24 def srcdir(tmpdir):
25 """Source directory for building the package."""
26 for size in ['44', '50', '150']:
27 path = tmpdir.join('chrome', 'icons', 'abp-{}.png'.format(size))
28 path.write(size, ensure=True)
29
30 tmpdir.join('bar.json').write(json.dumps({}))
31 return tmpdir
OLDNEW
« no previous file with comments | « tests/chrome_rsa.pem ('k') | tests/expecteddata/manifest_chrome_build.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld