Merge pull request #511 from rachmadaniHaryono/feature/warning
Feature/warning
This commit is contained in:
commit
876ea868bb
@ -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
3
tests/pytest.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[pytest]
|
||||
markers =
|
||||
non_tox: not run on tox
|
@ -1327,9 +1327,6 @@ 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)
|
||||
# init
|
||||
import buku
|
||||
|
Loading…
x
Reference in New Issue
Block a user