Merge pull request #511 from rachmadaniHaryono/feature/warning

Feature/warning
This commit is contained in:
Piña Colada 2021-05-01 21:00:48 +05:30 committed by GitHub
commit 876ea868bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ test-template: &test-template
python3 -m flake8
echo buku | xargs pylint --rcfile tests/.pylintrc
find . -iname "*.py" ! -path "./api/*" | xargs pylint --rcfile tests/.pylintrc
python3 -m pytest ./tests/test_*.py --cov buku -vv --durations=0
python3 -m pytest ./tests/test_*.py --cov buku -vv --durations=0 -c ./tests/pytest.ini
jobs:
py36:

3
tests/pytest.ini Normal file
View File

@ -0,0 +1,3 @@
[pytest]
markers =
non_tox: not run on tox

View File

@ -1327,10 +1327,7 @@ def test_load_firefox_database(firefox_db, add_pt):
res_yaml_file = firefox_db[1] if add_pt else firefox_db[2]
if not dump_data:
with open(res_yaml_file, "r") as f:
try:
res_yaml = yaml.load(f)
except RuntimeError:
res_yaml = yaml.load(f, Loader=PrettySafeLoader)
res_yaml = yaml.load(f, Loader=PrettySafeLoader)
# init
import buku