SeleniumTestCase
contains no test methods 5
6options: TestingOptions = None
7
8class SeleniumTestCase(unittest.TestCase): 9 @staticmethod
10 def add(suite: unittest.TestSuite, use_options: TestingOptions, test_class: Type[unittest.TestCase]):
11 global options
Test methods should always start with the test
. If there are no such methods,
the class overriding unittest.TestCase
won't run any test.
Not preferred:
import unittest
def Tests(unittest.TestCase):
def my_test(self, arg1, arg2):
self.assertEquals(arg1, arg2)
Preferred:
import unittest
def Tests(unittest.TestCase):
def test_something(self, arg1, arg2):
self.assertEquals(arg1, arg2)