Python 3.12 changed OrderedDict.__repr__ from
"OrderedDict([('new', 20), ...])" to "OrderedDict({'new': 20, ...})"
(see "gh-101446: Change repr of collections.OrderedDict to use regular
dictionary formatting instead of pairs of keys and values" at
https://docs.python.org/3.12/whatsnew/changelog.html for details),
which causes failure on Debian/trixie, providing python 3.13:
def test_ok(self):
out = StringIO()
call_command("mapper_import", DB_FILE, stdout=out)
> self.assertIn("('new', 20)", out.getvalue())
E AssertionError: "('new', 20)" not found in "Successfully imported OrderedDict({'new': 20, 'update': 0, 'delete': 0, 'skip': 0, 'error': 0, 'invalid': 0})\n"
tracker/test/test_commands.py:45: AssertionError
Print dict(result.totals) so the output looks the same on every python
version, and update the test to match the dict-style output.
Change-Id: If50d36323214ba61e826ad0c1d74ebfdc4eee43b
> File "/usr/share/repoapi/tracker/utils.py", line 90, in mantis_get_issue
> raise IssueNotFound(
> tracker.exceptions.IssueNotFound: 55408 Not found in response:[{'id': 55408,
Change-Id: I6ea740f217fb6070babcbba616e2679487b6881d
using mapper info, try to push notes to migrated mantis tickets using
old workfront ids
* tracker: add support for get old WF ids via setting
Change-Id: Ief8e5eb44c0d802d0de6e88dec165039a058cebe