Commit 81748de7 authored by Jeff Thiessen's avatar Jeff Thiessen

update apiCalls tests

parent 43c652a1
Pipeline #7518 failed with stage
in 6 minutes and 51 seconds
......@@ -68,6 +68,13 @@ class ApiCalls(object):
return ApiCalls._instance
def close():
"""
Close the current session by setting the current instance to None so
the next call with re-initialize the session
"""
ApiCalls._instance = None
def parameters_are_different(self, client_id, client_secret, base_URL, username, password, max_wait_time):
"""
Compare the current instance variables with a new set of variables
......
......@@ -29,7 +29,7 @@ class TestApiCalls(unittest.TestCase):
print "\nResetting api"
# Sets api params to "reset" so a new instance is created when the test
# initializes the api with the parameters it needs for the test
api = API.apiCalls("reset", "reset", "reset", "reset", "reset")
API.apiCalls.close()
@patch("API.apiCalls.urlopen")
@patch("API.apiCalls.ApiCalls.create_session")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment