update replaygain values

This commit is contained in:
Kyle Robbertze 2021-05-21 16:15:50 +02:00
parent ed8366cf58
commit 6f6d90fad7
2 changed files with 3 additions and 8 deletions

View File

@ -12,8 +12,6 @@ on:
jobs:
test-bionic:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
env:
ENVIRONMENT: testing
LIBRETIME_LOG_DIR: /tmp/log/libretime
@ -48,8 +46,6 @@ jobs:
php ../../vendor/bin/phpunit
test-xenial:
runs-on: ubuntu-16.04
strategy:
fail-fast: false
env:
ENVIRONMENT: testing
LIBRETIME_LOG_DIR: /tmp/log/libretime
@ -57,7 +53,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.5'
python-version: '3.6'
- name: Setup PostgreSQL
run: |
sudo systemctl start postgresql.service

View File

@ -13,8 +13,8 @@ def check_default_metadata(metadata):
assert abs(metadata['cuein']) < tolerance_seconds
assert abs(metadata['cueout'] - length_seconds) < tolerance_seconds
'''
tolerance = 0.30
expected_replaygain = 5.0
tolerance = 0.60
expected_replaygain = 5.2
print(metadata['replay_gain'])
assert abs(metadata['replay_gain'] - expected_replaygain) < tolerance
@ -27,7 +27,6 @@ def test_missing_replaygain():
def test_invalid_filepath():
metadata = ReplayGainAnalyzer.analyze(u'non-existent-file', dict())
def test_mp3_utf8():
metadata = ReplayGainAnalyzer.analyze(u'tests/test_data/44100Hz-16bit-stereo-utf8.mp3', dict())
check_default_metadata(metadata)