fix tests after they switched to yaml

This commit is contained in:
Marcus Hoffmann 2020-06-24 20:30:26 +02:00
parent 07caa88920
commit 3ebc44c54f
2 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -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