Skip to content

Compare locales bug 1382622 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
sudo: false
language: python
python:
- "2.7"
- "3.5"
- "nightly"
script: python -m unittest discover
install: pip install tox-travis
script: tox
notifications:
irc:
channels:
Expand Down
2 changes: 1 addition & 1 deletion tests/migrate/test_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class MockContext(unittest.TestCase):
def get_source(self, path, key):
return self.strings.get(key, None).get_val()
return self.strings.get(key, None).val


@unittest.skipUnless(PropertiesParser, 'compare-locales required')
Expand Down
2 changes: 1 addition & 1 deletion tests/migrate/test_literal.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class MockContext(unittest.TestCase):
def get_source(self, path, key):
return self.strings.get(key, None).get_val()
return self.strings.get(key, None).val


@unittest.skipUnless(PropertiesParser, 'compare-locales required')
Expand Down
2 changes: 1 addition & 1 deletion tests/migrate/test_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class MockContext(unittest.TestCase):
def get_source(self, path, key):
return self.ab_cd_legacy.get(key, None).get_val()
return self.ab_cd_legacy.get(key, None).val


@unittest.skipUnless(PropertiesParser and DTDParser,
Expand Down
2 changes: 1 addition & 1 deletion tests/migrate/test_plural.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MockContext(unittest.TestCase):
plural_categories = ('one', 'other')

def get_source(self, path, key):
return self.strings.get(key, None).get_val()
return self.strings.get(key, None).val


@unittest.skipUnless(PropertiesParser, 'compare-locales required')
Expand Down
2 changes: 1 addition & 1 deletion tests/migrate/test_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class MockContext(unittest.TestCase):
def get_source(self, path, key):
return self.strings.get(key, None).get_val()
return self.strings.get(key, None).val


@unittest.skipUnless(PropertiesParser, 'compare-locales required')
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tox]
envlist = py27, py36
envlist = py27, py27-cl, py36
skipsdist=True

[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
cl: compare-locales

commands=python -m unittest discover