mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
fix tests after they switched to yaml
This commit is contained in:
parent
07caa88920
commit
3ebc44c54f
@ -906,7 +906,6 @@ class MetadataTest(unittest.TestCase):
|
||||
'Prepare': None}})
|
||||
|
||||
def test_read_xref_metadata(self):
|
||||
fdroidserver.common.config = {'accepted_formats': ['yml']}
|
||||
os.chdir('xref')
|
||||
fdroidserver.metadata.warnings_action = 'error'
|
||||
apps = fdroidserver.metadata.read_metadata(xref=True)
|
||||
|
@ -612,12 +612,11 @@ echo_header "test whatsnew from fastlane without CVC set"
|
||||
REPOROOT=`create_test_dir`
|
||||
cd $REPOROOT
|
||||
fdroid_init_with_prebuilt_keystore
|
||||
echo "accepted_formats = ['txt', 'yml']" >> config.py
|
||||
mkdir -p metadata/com.politedroid/en-US/changelogs/
|
||||
cp $WORKSPACE/tests/repo/com.politedroid_6.apk repo
|
||||
cp $WORKSPACE/tests/metadata/com.politedroid.txt metadata
|
||||
cp $WORKSPACE/tests/metadata/com.politedroid.yml metadata
|
||||
echo "whatsnew test" > metadata/com.politedroid/en-US/changelogs/6.txt
|
||||
sed -i -e '/Current Version/d' metadata/com.politedroid.txt
|
||||
sed -i -e '/CurrentVersion/d' metadata/com.politedroid.yml
|
||||
$fdroid update --pretty --nosign
|
||||
grep -F 'whatsnew' repo/index-v1.json
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user