collective / i18ndude

i18ndude performs various tasks related to ZPT's, Python Scripts and i18n.
https://pypi.org/project/i18ndude
4 stars 9 forks source link

Sort files that we extract messages from. #60

Closed mauritsvanrees closed 6 years ago

mauritsvanrees commented 6 years ago

On Linux they were already sorted, but not on Mac, leading to a test failure. Sample failure:

Failure in test test_read (i18ndude.tests.test_catalog.TestMessagePTReader)
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/Users/maurits/tools/src/i18ndude/src/i18ndude/tests/test_catalog.py", line 509, in test_read
    (out[key], self.output[key]))
  File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/case.py", line 682, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true : Failure in pt parsing.
Got:some_alt, Some alt, ['/Users/maurits/tools/src/i18ndude/src/i18ndude/tests/input/test3.pt:15', '/Users/maurits/tools/src/i18ndude/src/i18ndude/tests/input/test1.pt:15'], [], []
Expected:some_alt, Some alt, ['/Users/maurits/tools/src/i18ndude/src/i18ndude/tests/input/test1.pt:15', '/Users/maurits/tools/src/i18ndude/src/i18ndude/tests/input/test3.pt:15'], [], []