Add default locale for generated categories

The client expects at least a name to be set.

Regression of 2c566cf6.
This commit is contained in:
Jochen Sprickerhof 2023-09-10 10:05:15 +02:00 committed by Hans-Christoph Steiner
parent b5724f507b
commit 521ff4fe17
4 changed files with 20 additions and 8 deletions

View file

@ -1842,7 +1842,7 @@ class UpdateTest(unittest.TestCase):
with open('repo/index-v2.json') as fp:
index = json.load(fp)
self.assertEqual(
{'Time': dict()},
{'Time': {'name': {'en-US': 'Time'}}},
index['repo'][CATEGORIES_CONFIG_NAME],
)
@ -1867,7 +1867,7 @@ class UpdateTest(unittest.TestCase):
with open('repo/index-v2.json') as fp:
index = json.load(fp)
self.assertEqual(
{'bar': dict(), 'foo': dict()},
{'bar': {'name': {'en-US': 'bar'}}, 'foo': {'name': {'en-US': 'foo'}}},
index['repo'][CATEGORIES_CONFIG_NAME],
)
@ -1894,7 +1894,7 @@ class UpdateTest(unittest.TestCase):
with open('repo/index-v2.json') as fp:
index = json.load(fp)
self.assertEqual(
{'System': {'name': {'en-US': 'System Apps'}}, 'Time': dict()},
{'System': {'name': {'en-US': 'System Apps'}}, 'Time': {'name': {'en-US': 'Time'}}},
index['repo'][CATEGORIES_CONFIG_NAME],
)