Skip to content

Commit c92903c

Browse files
author
Luiko Czub
committed
test added - Allow to explicitly disable a http_proxy #121
1 parent 36b5c07 commit c92903c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ TestLink-API-Python-client developers
9393
-------------------------------------
9494
* `James Stock`_, `Olivier Renault`_, `lczub`_, `manojklm`_ (PY3)
9595
* `g4l4drim`_, `pade`_, `anton-matosov`_, `citizen-stig`_, `charz`_, `Maberi`_
96-
* `Brian-Williams`_, `alexei-drozdov`_
96+
* `Brian-Williams`_, `alexei-drozdov`_, `janLo`_
9797
* anyone forgotten?
9898

9999
.. _Apache License 2.0: http://www.apache.org/licenses/LICENSE-2.0
@@ -119,4 +119,5 @@ TestLink-API-Python-client developers
119119
.. _manojklm: https://github.com/manojklm/TestLink-API-Python-client
120120
.. _Maberi: https://github.com/Maberi/TestLink-API-Python-client.git
121121
.. _Brian-Williams: https://github.com/Brian-Williams/TestLink-API-Python-client
122-
.. _alexei-drozdov: https://github.com/alexei-drozdov/TestLink-API-Python-client
122+
.. _alexei-drozdov: https://github.com/alexei-drozdov/TestLink-API-Python-client
123+
.. _janLo :https://github.com/janLo/TestLink-API-Python-client.git

test/utest-offline/testlinkhelper_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,16 @@ def test_connect_with_proxy(api_helper_class):
156156
assert 'SERVER-URL-71' == a_tl_api.server
157157
assert 'DEVKEY-71' == a_tl_api.devKey
158158
assert 'PROXY-71' == a_tl_api.args['transport'].proxy
159+
160+
def test_connect_ignoring_proxy_env(api_helper_class, monkeypatch):
161+
""" create a TestLink API dummy ignoring PROXY env - pullRequest #121 """
162+
setEnviron(monkeypatch, ENVNAMES[2], 'PROXY-71')
163+
a_helper = api_helper_class('SERVER-URL-71', 'DEVKEY-71', False)
164+
a_tl_api = a_helper.connect(DummyTestLinkAPI)
165+
assert 'SERVER-URL-71' == a_tl_api.server
166+
assert 'DEVKEY-71' == a_tl_api.devKey
167+
assert {} == a_tl_api.args
168+
159169

160170
def test_connect_with_https_no_context(api_helper_class):
161171
""" create a TestLink API dummy for https with uncertified context """

0 commit comments

Comments
 (0)