示例#1
0
    def tearDown(self):
        "This tear down will close the current allocated webdriver"

        # do_and_ignore() is a handle wrapper that let's you run a statement
        # and not care if it errors or not.  This is helpful for tearDown
        # routines where the success/failure is not part of the test result.
        do_and_ignore(lambda: WTF_WEBDRIVER_MANAGER.close_driver())
示例#2
0
 def tearDown(self):
     "This tear down will close the current allocated webdriver"
     
     # do_and_ignore() is a handle wrapper that let's you run a statement 
     # and not care if it errors or not.  This is helpful for tearDown
     # routines where the success/failure is not part of the test result.
     do_and_ignore(lambda: WTF_WEBDRIVER_MANAGER.close_driver())
示例#3
0
    def test_do_and_ignore(self):
        self.__did_call_function = False

        def erroneous_func():
            self.__did_call_function = True
            raise RuntimeError("IGNORE ME")

        do_and_ignore(lambda: erroneous_func())
        self.assertTrue(self.__did_call_function)
示例#4
0
    def test_do_and_ignore(self):
        self.__did_call_function = False

        def erroneous_func():
            self.__did_call_function = True
            raise RuntimeError("IGNORE ME")

        do_and_ignore(lambda: erroneous_func())
        self.assertTrue(self.__did_call_function)
示例#5
0
    def tearDown(self):

        #tear down any webdrivers we create.
        do_and_ignore(lambda: WTF_WEBDRIVER_MANAGER.close_driver())
示例#6
0
 def tearDown(self):
     do_and_ignore(lambda: WTF_WEBDRIVER_MANAGER.close_driver(self.driver))
示例#7
0
 def __exit__(self, type_, value, traceback):
     # Stop standby on exit
     do_and_ignore(lambda: self.stop())
示例#8
0
 def __del__(self):
     do_and_ignore(lambda: self.stop())
     self._thread = None
	def teardown(self):
		do_and_ignore(lambda: WTF_WEBDRIVER_MANAGER.close_driver()) 
示例#10
0
 def __exit__(self, type_, value, traceback):
     # Stop standby on exit
     do_and_ignore(lambda: self.stop())
示例#11
0
 def __del__(self):
     do_and_ignore(lambda: self.stop())
     self._thread = None
示例#12
0
 def tearDown(self):
     # tear down any webdrivers we create.
     do_and_ignore(lambda: WTF_WEBDRIVER_MANAGER.close_driver())