This modernizes the lodgeit testsuite to use stestr instead of nose. The
primary reason for this is nose is not python3.10 compatible and we
would like to use newer python with lodgeit.
Change-Id: I8ae480d22bbef0258afc9d6ffd6cd820993430a1
The alfajor HTTP test wrapper is not working properly. All the tests
are failing with:
AttributeError: '_APIClientResponse' object has no attribute '_status_code'
It doesn't look like alfajor is being maintained any more [1, 2], so
remove the dependency on it and run the tests directly through the
werkzeug client instead.
The test_json_get_styles test still failed because the content and
ordering of the styles returned from the API is dependent on the
platform on which the tests run. Instead of testing against a fixed
expected result, which could be different on another platform,
generate the expected results dynamically.
Update the tox configuration and test-requirements.txt to be able to
run the tests via tox.
[1] https://github.com/idealist/Alfajor
[2] https://github.com/idealistdev/alfajor
Change-Id: I4db6783b9d725ce096575035ea27d28be8e6fed5
- E126 continuation line over-indented for hanging indent
- E127 continuation line over-indented for visual indent
- E128 continuation line under-indented for visual indent
- E131 continuation line unaligned for hanging indent
- E265 block comment should start with '# '
- E272 multiple spaces before keyword
- E302 expected 2 blank lines, found <n>
- E712 comparison to False should be 'if cond is False:' or 'if not cond:'
- F401 '<name>' imported but unused
Change-Id: I2344cf2e8fd7910e72e9d8043423d25e43065ef2