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