diff --git a/.circleci/config.yml b/.circleci/config.yml index f1bbc6f..201cd99 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/tests/pytest.ini b/tests/pytest.ini new file mode 100644 index 0000000..4d03895 --- /dev/null +++ b/tests/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +markers = + non_tox: not run on tox diff --git a/tests/test_bukuDb.py b/tests/test_bukuDb.py index 9962f8b..7affb8e 100644 --- a/tests/test_bukuDb.py +++ b/tests/test_bukuDb.py @@ -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