File tree Expand file tree Collapse file tree 4 files changed +0
-10
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +0
-10
lines changed
Original file line number Diff line number Diff line change @@ -141,7 +141,6 @@ def test_message_capitalization_is_configurable(
141
141
"semantic_release.history.logs.get_commit_log" ,
142
142
lambda * a , ** kw : [commit ],
143
143
):
144
-
145
144
with mock .patch (
146
145
"semantic_release.history.config.get" ,
147
146
wrapped_config_get (changelog_capitalize = config_setting ),
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ def test_markdown_changelog_gitlab():
56
56
with mock .patch (
57
57
"semantic_release.changelog.config.get" , wrapped_config_get (hvcs = "gitlab" )
58
58
):
59
-
60
59
assert markdown_changelog (
61
60
"owner" ,
62
61
"repo_name" ,
@@ -164,11 +163,9 @@ def test_get_changelog_sections():
164
163
],
165
164
)
166
165
def test_add_pr_link (message , hvcs , expected_output ):
167
-
168
166
with mock .patch (
169
167
"semantic_release.changelog.config.get" , wrapped_config_get (hvcs = hvcs )
170
168
):
171
-
172
169
assert add_pr_link ("owner" , "name" , message ) == expected_output
173
170
174
171
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ def test_version_by_commit_should_call_correct_functions(mocker):
67
67
def test_version_by_tag_with_commit_version_number_should_call_correct_functions (
68
68
mocker ,
69
69
):
70
-
71
70
mocker .patch (
72
71
"semantic_release.cli.config.get" ,
73
72
wrapped_config_get (
@@ -106,7 +105,6 @@ def test_version_by_tag_with_commit_version_number_should_call_correct_functions
106
105
def test_version_by_tag_only_with_commit_version_number_should_call_correct_functions (
107
106
mocker ,
108
107
):
109
-
110
108
mocker .patch (
111
109
"semantic_release.cli.config.get" ,
112
110
wrapped_config_get (
Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ def test_get_domain_should_have_expected_domain(
186
186
ci_server_host ,
187
187
hvcs_api_domain ,
188
188
):
189
-
190
189
with mock .patch (
191
190
"semantic_release.hvcs.config.get" ,
192
191
wrapped_config_get (
@@ -202,7 +201,6 @@ def test_get_domain_should_have_expected_domain(
202
201
"CI_SERVER_HOST" : ci_server_host ,
203
202
},
204
203
):
205
-
206
204
assert get_hvcs ().domain () == expected_domain
207
205
assert get_hvcs ().api_url () == expected_api_url
208
206
@@ -223,7 +221,6 @@ def test_ghe_domain_should_be_retrieved_from_env():
223
221
@mock .patch ("semantic_release.hvcs.config.get" , wrapped_config_get (hvcs = "gitlab" ))
224
222
@mock .patch ("os.environ" , {"GL_TOKEN" : "token" })
225
223
def test_get_token ():
226
-
227
224
assert get_hvcs ().token () == "token"
228
225
229
226
@@ -603,7 +600,6 @@ def request_callback(request):
603
600
604
601
605
602
class GiteaReleaseTests (TestCase ):
606
-
607
603
url = "https://gitea.com/api/v1/repos/gitea/tea/releases"
608
604
edit_url = "https://gitea.com/api/v1/repos/gitea/tea/releases/1"
609
605
get_url = "https://gitea.com/api/v1/repos/gitea/tea/releases/tags/v1.0.0"
You can’t perform that action at this time.
0 commit comments