Skip to content

Commit

Permalink
fix: remove mock tests test_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kohulan authored Feb 26, 2024
1 parent 911c714 commit a50068b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,26 +350,6 @@ def test_get_ertl_functional_groups_no_fragments():
assert result[0] == {"None": "No fragments found"}


@pytest.fixture
def mock_get_default_jvm_path(monkeypatch):
def mock_get_default_jvm_path():
return "/dummy/jvm/path"

monkeypatch.setattr(
"app.modules.toolkits.cdk_wrapper.getDefaultJVMPath", mock_get_default_jvm_path
)


@pytest.fixture
def mock_is_jvm_started(monkeypatch):
def mock_is_jvm_started():
return False

monkeypatch.setattr(
"app.modules.toolkits.cdk_wrapper.isJVMStarted", mock_is_jvm_started
)


def test_setup_jvm_exception(monkeypatch, capsys):
def mock_get_default_jvm_path():
raise JVMNotFoundException
Expand Down

0 comments on commit a50068b

Please sign in to comment.