mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-14 03:00:29 +03:00
Add default locale for generated categories
The client expects at least a name to be set.
Regression of 2c566cf6.
This commit is contained in:
parent
b5724f507b
commit
521ff4fe17
4 changed files with 20 additions and 8 deletions
|
|
@ -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],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue