Commit 43c652a1 authored by Jeff Thiessen's avatar Jeff Thiessen

init api before each test so a new instance is created when the test creates it's own api

parent 941339d9
Pipeline #7473 failed with stage
in 8 minutes and 13 seconds
......@@ -26,6 +26,10 @@ class TestApiCalls(unittest.TestCase):
def setUp(self):
print "\nStarting " + self.__module__ + ": " + self._testMethodName
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")
@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