mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 00:41:06 +03:00
support app metadata in XML format
While the current text metadata format is good for human readability and editability, it is difficult to produce and parse using code. XML is a widespread standard format for easy automatic parsing and creating, while having decent human readability. The .pickle for testing is a lightly edited version of the real metadata for net.osmand.plus: * comments were removed * "NonFreeNet" was added as an AntiFeature
This commit is contained in:
parent
2831b3e93f
commit
ab145de6bc
4 changed files with 766 additions and 7 deletions
|
@ -37,7 +37,7 @@ class MetadataTest(unittest.TestCase):
|
|||
fdroidserver.common.config = config
|
||||
|
||||
apps = fdroidserver.metadata.read_metadata(xref=True)
|
||||
for appid in ('org.smssecure.smssecure', 'org.adaway'):
|
||||
for appid in ('org.smssecure.smssecure', 'org.adaway', 'net.osmand.plus'):
|
||||
frompickle = pickle.load(open(os.path.join('metadata', appid + '.pickle')))
|
||||
self.assertTrue(appid in apps.keys())
|
||||
self.assertEquals(apps[appid], frompickle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue