10
10
11
11
def test_get_job_doc_url_with_fq_doc_url ():
12
12
# Arrange
13
+ collection : str = "collection-x"
13
14
job : str = "job-x"
14
15
job_definition : Dict = {
15
- "collection" : "collection-x" ,
16
16
"doc-url" : "https://example.com/docs/doc.md" ,
17
17
}
18
18
manifest_url : str = (
@@ -23,7 +23,7 @@ def test_get_job_doc_url_with_fq_doc_url():
23
23
expected_doc_url : str = "https://example.com/docs/doc.md"
24
24
25
25
# Act
26
- doc_url = decoder .get_job_doc_url (job , job_definition , manifest_url )
26
+ doc_url = decoder .get_job_doc_url (collection , job , job_definition , manifest_url )
27
27
28
28
# Assert
29
29
assert doc_url
@@ -32,8 +32,9 @@ def test_get_job_doc_url_with_fq_doc_url():
32
32
33
33
def test_get_job_doc_url_with_partial_doc_url ():
34
34
# Arrange
35
+ collection : str = "collection-x"
35
36
job : str = "job-x"
36
- job_definition : Dict = {"collection" : "collection-x" , " doc-url" : "special/doc.md" }
37
+ job_definition : Dict = {"doc-url" : "special/doc.md" }
37
38
manifest_url : str = (
38
39
"https://raw.githubusercontent.com/"
39
40
"InformaticsMatters/virtual-screening/main/data-manager/"
@@ -46,7 +47,7 @@ def test_get_job_doc_url_with_partial_doc_url():
46
47
)
47
48
48
49
# Act
49
- doc_url = decoder .get_job_doc_url (job , job_definition , manifest_url )
50
+ doc_url = decoder .get_job_doc_url (collection , job , job_definition , manifest_url )
50
51
51
52
# Assert
52
53
assert doc_url
@@ -55,8 +56,9 @@ def test_get_job_doc_url_with_partial_doc_url():
55
56
56
57
def test_get_job_doc_url_with_no_doc_url ():
57
58
# Arrange
59
+ collection : str = "collection-x"
58
60
job : str = "job-x"
59
- job_definition : Dict = {"collection" : "collection-x" }
61
+ job_definition : Dict = {}
60
62
manifest_url : str = (
61
63
"https://raw.githubusercontent.com/"
62
64
"InformaticsMatters/virtual-screening/main/data-manager/"
@@ -69,7 +71,7 @@ def test_get_job_doc_url_with_no_doc_url():
69
71
)
70
72
71
73
# Act
72
- doc_url = decoder .get_job_doc_url (job , job_definition , manifest_url )
74
+ doc_url = decoder .get_job_doc_url (collection , job , job_definition , manifest_url )
73
75
74
76
# Assert
75
77
assert doc_url
0 commit comments