We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d0425e commit 2a6fe5fCopy full SHA for 2a6fe5f
integrations/selenium_ide/convert_ide.py
@@ -46,7 +46,13 @@ def main():
46
has_unicode = True
47
continue
48
49
- # Handle class definition
+ # Keep SeleniumBase classes if already used in the test script
50
+ data = re.findall('^class\s\S+\(BaseCase\):\s*$', line)
51
+ if data:
52
+ seleniumbase_lines.append(line)
53
+ continue
54
+
55
+ # Have unittest.TestCase classes inherit BaseCase instead
56
data = re.findall('^class\s\S+\(unittest\.TestCase\):\s*$', line)
57
if data:
58
data = data[0].replace("unittest.TestCase", "BaseCase")
0 commit comments