File tree 4 files changed +20
-0
lines changed 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,18 @@ def test_publisher_name(self):
84
84
85
85
assert publisher .publisher_name == "ActiveState"
86
86
87
+ def test_publisher_base_url (self ):
88
+ org_name = "fakeorg"
89
+ project_name = "fakeproject"
90
+ publisher = ActiveStatePublisher (
91
+ organization = org_name , activestate_project_name = project_name
92
+ )
93
+
94
+ assert (
95
+ publisher .publisher_base_url
96
+ == f"https://platform.activestate.com/{ org_name } /{ project_name } "
97
+ )
98
+
87
99
def test_publisher_url (self ):
88
100
org_name = "fakeorg"
89
101
project_name = "fakeproject"
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ def test_github_publisher_computed_properties(self):
96
96
assert getattr (publisher , claim_name ) is not None
97
97
98
98
assert str (publisher ) == "fakeworkflow.yml"
99
+ assert publisher .publisher_base_url == "https://github.com/fakeowner/fakerepo"
99
100
assert publisher .publisher_url () == "https://github.com/fakeowner/fakerepo"
100
101
assert (
101
102
publisher .publisher_url ({"sha" : "somesha" })
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def test_gitlab_publisher_computed_properties(self):
94
94
assert getattr (publisher , claim_name ) is not None
95
95
96
96
assert str (publisher ) == "subfolder/fakeworkflow.yml"
97
+ assert publisher .publisher_base_url == "https://gitlab.com/fakeowner/fakerepo"
97
98
assert publisher .publisher_url () == "https://gitlab.com/fakeowner/fakerepo"
98
99
assert (
99
100
publisher .publisher_url ({"sha" : "somesha" })
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ def test_publisher_name(self):
33
33
34
34
assert publisher .publisher_name == "Google"
35
35
36
+
37
+ def test_publisher_base_url (self ):
38
+ publisher = google .
GooglePublisher (
email = "[email protected] " )
39
+
40
+ assert publisher .publisher_base_url is None
41
+
36
42
def test_publisher_url (self ):
37
43
publisher = google .
GooglePublisher (
email = "[email protected] " )
38
44
You can’t perform that action at this time.
0 commit comments