Skip to content

Commit e7fe85f

Browse files
author
Bruno Grande
committed
Update dedup() tests for new layout
1 parent 6fbe20b commit e7fe85f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/services/nextflowtower/test_models.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
from orca.services.nextflowtower.models import LaunchInfo
44

55

6-
def test_that_launch_info_dedup_works():
7-
secrets = ["foo", "bar", "baz", "foo"]
8-
dedupped = LaunchInfo.dedup(secrets)
9-
assert len(dedupped) == 3
10-
11-
126
def test_that_getting_an_launch_info_attribute_works():
137
launch_info = LaunchInfo(pipeline="foo")
148
assert launch_info.get("pipeline") == "foo"

tests/services/nextflowtower/test_utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66
def test_that_parse_datetime_works():
77
result = utils.parse_datetime("2023-04-26T00:49:49Z")
88
assert result == datetime(2023, 4, 26, 0, 49, 49, tzinfo=timezone.utc)
9+
10+
11+
def test_that_launch_info_dedup_works():
12+
secrets = ["foo", "bar", "baz", "foo"]
13+
dedupped = utils.dedup(secrets)
14+
assert len(dedupped) == 3

0 commit comments

Comments
 (0)