Skip to content

Commit

Permalink
global: upgrade to pytest-invenio 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Oct 19, 2020
1 parent 340121b commit 3f362a3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
6 changes: 3 additions & 3 deletions pytest.ini
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
# Copyright (C) 2020 Northwestern University.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

[pytest]
addopts = --pep8 --ignore=docs --cov=invenio_previewer --cov-report=term-missing
filterwarnings = ignore::pytest.PytestDeprecationWarning
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=invenio_previewer --cov-report=term-missing
testpaths = docs tests invenio_previewer
15 changes: 7 additions & 8 deletions run-tests.sh
Expand Up @@ -2,16 +2,15 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
# Copyright (C) 2020 Northwestern University.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


pydocstyle invenio_previewer && \
isort invenio_previewer tests --check-only --diff && \
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
pytest && \
sphinx-build -qnNW -b doctest docs docs/_build/doctest
python -m check_manifest --ignore ".travis-*" && \
python -m sphinx.cmd.build -qnNW docs docs/_build/html && \
python -m pytest
python -m sphinx.cmd.build -qnNW -b doctest docs docs/_build/doctest
tests_exit_code=$?
exit "$tests_exit_code"
5 changes: 4 additions & 1 deletion setup.cfg
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -35,6 +35,9 @@ output-dir = invenio_previewer/translations/
[pydocstyle]
add_ignore = D401

[pycodestyle]
exclude = docs/conf.py

[update_catalog]
input-file = invenio_previewer/translations/messages.pot
output-dir = invenio_previewer/translations/
7 changes: 3 additions & 4 deletions setup.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2019 CERN.
# Copyright (C) 2016-2020 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -21,7 +21,7 @@
'invenio-theme>=1.3.0a10',
'invenio-db[versioning]>=1.0.2',
'mock>=1.3.0',
'pytest-invenio>=1.3.2',
'pytest-invenio>=1.4.0',
]

extras_require = {
Expand All @@ -40,8 +40,7 @@
extras_require['all'].extend(reqs)

setup_requires = [
'Babel>=1.3',
'pytest-runner>=2.6.2',
'Babel>=2.8',
]

install_requires = [
Expand Down

0 comments on commit 3f362a3

Please sign in to comment.