Skip to content

Commit 14bf8de

Browse files
committed
bug 1382622, fix tests to use .val instead of .get_val(), r=stas
The get_val wasn't really intended to be an API to begin with. Using the property .val is forwards and backwards compatible.
1 parent 6c8a237 commit 14bf8de

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/migrate/test_concat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class MockContext(unittest.TestCase):
2222
def get_source(self, path, key):
23-
return self.strings.get(key, None).get_val()
23+
return self.strings.get(key, None).val
2424

2525

2626
@unittest.skipUnless(PropertiesParser, 'compare-locales required')

tests/migrate/test_literal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class MockContext(unittest.TestCase):
1717
def get_source(self, path, key):
18-
return self.strings.get(key, None).get_val()
18+
return self.strings.get(key, None).val
1919

2020

2121
@unittest.skipUnless(PropertiesParser, 'compare-locales required')

tests/migrate/test_merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class MockContext(unittest.TestCase):
2020
def get_source(self, path, key):
21-
return self.ab_cd_legacy.get(key, None).get_val()
21+
return self.ab_cd_legacy.get(key, None).val
2222

2323

2424
@unittest.skipUnless(PropertiesParser and DTDParser,

tests/migrate/test_plural.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MockContext(unittest.TestCase):
1919
plural_categories = ('one', 'other')
2020

2121
def get_source(self, path, key):
22-
return self.strings.get(key, None).get_val()
22+
return self.strings.get(key, None).val
2323

2424

2525
@unittest.skipUnless(PropertiesParser, 'compare-locales required')

tests/migrate/test_replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class MockContext(unittest.TestCase):
1818
def get_source(self, path, key):
19-
return self.strings.get(key, None).get_val()
19+
return self.strings.get(key, None).val
2020

2121

2222
@unittest.skipUnless(PropertiesParser, 'compare-locales required')

0 commit comments

Comments
 (0)