Skip to content

Commit

Permalink
fix: linting issues and test
Browse files Browse the repository at this point in the history
  • Loading branch information
klorenz committed Mar 6, 2021
1 parent f8cf1e1 commit b04dd2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab/tests/test_config.py
Expand Up @@ -196,6 +196,9 @@ def test_valid_data(m_open, path_exists):
assert 2 == cp.timeout
assert True == cp.ssl_verify

fd = io.StringIO(valid_config)
fd.close = mock.Mock(return_value=None)
m_open.return_value = fd
cp = config.GitlabConfigParser(gitlab_id="five")
assert "five" == cp.gitlab_id
assert "https://five.url" == cp.url
Expand All @@ -204,6 +207,7 @@ def test_valid_data(m_open, path_exists):
assert 2 == cp.timeout
assert True == cp.ssl_verify


@mock.patch("os.path.exists")
@mock.patch("builtins.open")
@pytest.mark.parametrize(
Expand Down

0 comments on commit b04dd2c

Please sign in to comment.