Skip to content

Commit

Permalink
remove test: now it fails and it's not clear to me what it is testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcucchi9 committed Oct 10, 2024
1 parent e5b3f4d commit 1a5647d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_30_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

# mypy: ignore-errors
import datetime
import pathlib
import unittest.mock
import uuid
from typing import Any
Expand Down Expand Up @@ -257,19 +256,6 @@ def test_update_results_href() -> None:
assert updated_href == exp_updated_href


def test_update_results_href_from_config(
monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path
) -> None:
config_path = tmp_path / "download-nodes.config"
config_path.write_text("\n\nhttp://download_node/\n\n$DOWNLOAD_NODE\n\n")
monkeypatch.setenv("DOWNLOAD_NODE", "http://download_node/")
monkeypatch.setenv("DOWNLOAD_NODES_CONFIG", str(config_path))

local_path = "protocol://results/1234"
updated_href = utils.update_results_href(local_path)
assert updated_href == "http://download_node/results/1234"


def test_get_results_from_job() -> None:
mock_session = unittest.mock.Mock(spec=sqlalchemy.orm.Session)
job = cads_broker.SystemRequest(
Expand Down

0 comments on commit 1a5647d

Please sign in to comment.