We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8cf1e1 commit b04dd2cCopy full SHA for b04dd2c
gitlab/tests/test_config.py
@@ -196,6 +196,9 @@ def test_valid_data(m_open, path_exists):
196
assert 2 == cp.timeout
197
assert True == cp.ssl_verify
198
199
+ fd = io.StringIO(valid_config)
200
+ fd.close = mock.Mock(return_value=None)
201
+ m_open.return_value = fd
202
cp = config.GitlabConfigParser(gitlab_id="five")
203
assert "five" == cp.gitlab_id
204
assert "https://five.url" == cp.url
@@ -204,6 +207,7 @@ def test_valid_data(m_open, path_exists):
207
205
208
206
209
210
+
211
@mock.patch("os.path.exists")
212
@mock.patch("builtins.open")
213
@pytest.mark.parametrize(
0 commit comments