(self, value: str)
| 233 | option.click() |
| 234 | |
| 235 | def _escape_string(self, value: str) -> str: |
| 236 | if '"' in value and "'" in value: |
| 237 | parts = [] |
| 238 | for index, substring in enumerate(value.split('"')): |
| 239 | if index: |
| 240 | parts.append("'\"'") |
| 241 | if substring: |
| 242 | parts.append(f'"{substring}"') |
| 243 | return f"concat({', '.join(parts)})" |
| 244 | |
| 245 | if '"' in value: |
| 246 | return f"'{value}'" |
| 247 | |
| 248 | return f'"{value}"' |
| 249 | |
| 250 | def _get_longest_token(self, value: str) -> str: |
| 251 | items = value.split(" ") |
no test coverage detected