зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1647260 - renamed one declaration of test_str_with_file to test_repr_with_file. r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D81457
This commit is contained in:
Родитель
35ccce3ac8
Коммит
d2989af38e
|
@ -77,6 +77,7 @@ class TestExceptionGroup(unittest.TestCase):
|
|||
* multiline
|
||||
error 2""")
|
||||
|
||||
|
||||
class TestFeatureGateException(unittest.TestCase):
|
||||
def test_str_no_file(self):
|
||||
error = FeatureGateException("oops")
|
||||
|
@ -90,7 +91,7 @@ class TestFeatureGateException(unittest.TestCase):
|
|||
error = FeatureGateException("oops")
|
||||
assert repr(error) == "FeatureGateException('oops', filename=None)"
|
||||
|
||||
def test_str_with_file(self):
|
||||
def test_repr_with_file(self):
|
||||
error = FeatureGateException("oops", filename="some/bad/file.txt")
|
||||
assert repr(error) == "FeatureGateException('oops', filename='some/bad/file.txt')"
|
||||
|
||||
|
@ -216,7 +217,8 @@ class ExpandFeatureTests(unittest.TestCase):
|
|||
assert expand_feature(feature)['defaultValue'] == {'default': True}
|
||||
|
||||
def test_default_value_override_configured_value(self):
|
||||
feature = minimal_definition(type='boolean', default_value={'default': False, 'nightly': True})
|
||||
feature = minimal_definition(type='boolean', default_value={
|
||||
'default': False, 'nightly': True})
|
||||
assert expand_feature(feature)['defaultValue'] == {'default': False, 'nightly': True}
|
||||
|
||||
def test_preference_default(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче