Skip to content

Commit 80cade3

Browse files
authored
Merge pull request #415 from softwarepub/refactor/411-disable-tests
Disable tests that fail due to data model
2 parents 73df3ea + 6bcdbe9 commit 80cade3

8 files changed

Lines changed: 26 additions & 206 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ norecursedirs = "docs/*"
112112
testpaths = [
113113
"test"
114114
]
115-
addopts = "--cov=hermes --cov-report term"
115+
addopts = "-r s --cov=hermes --cov-report term"
116116

117117

118118
[build-system]

test/hermes_test/commands/deposit/test_invenio.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
# SPDX-FileContributor: Michael Meinel
66
# SPDX-FileContributor: David Pape
77

8+
# flake8: noqa
9+
810
from unittest import mock
911

1012
import click
1113
import pytest
1214

15+
pytest.skip("FIXME: Re-enable test after data model refactoring is done.", allow_module_level=True)
16+
1317
from hermes.commands.deposit import invenio
1418
from hermes.error import MisconfigurationError
1519

test/hermes_test/commands/init/test_init.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# SPDX-FileContributor: Nitai Heeb
44

5+
# flake8: noqa
6+
57
import json
68
import pytest
9+
10+
pytest.skip("FIXME: Re-enable test after data model refactoring is done.", allow_module_level=True)
11+
712
from hermes.commands.init.base import string_in_file, download_file_from_url
813
from unittest.mock import patch, MagicMock
914
import hermes.commands.init.util.oauth_process as oauth_process

test/hermes_test/model/test_codemeta_context.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

test/hermes_test/model/test_harvest_context.py

Lines changed: 0 additions & 134 deletions
This file was deleted.

test/hermes_test/test_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44

55
# SPDX-FileContributor: Michael Meinel
66

7+
# flake8: noqa
8+
79
import pytest
810

11+
pytest.skip("FIXME: Re-enable test after data model refactoring is done.", allow_module_level=True)
12+
913
from hermes.commands import cli
1014

1115

test/hermes_test/test_main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
# SPDX-FileContributor: Michael Meinel
66

7+
# flake8: noqa
8+
9+
import pytest
10+
11+
pytest.skip("FIXME: Re-enable test after data model refactoring is done.", allow_module_level=True)
12+
713
import subprocess
814
import sys
915

test/hermes_test/test_marketplace.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# SPDX-FileContributor: David Pape
44

5+
# flake8: noqa
6+
7+
import pytest
8+
9+
pytest.skip("FIXME: Re-enable test after data model refactoring is done.", allow_module_level=True)
10+
511
import requests_mock
612

713
from hermes.commands.marketplace import (

0 commit comments

Comments
 (0)