(self, parser, namespace, values, option_string=None)
| 329 | """ |
| 330 | |
| 331 | def __call__(self, parser, namespace, values, option_string=None): |
| 332 | try: |
| 333 | import selenium # NOQA |
| 334 | except ImportError as e: |
| 335 | raise ImproperlyConfigured(f"Error loading selenium module: {e}") |
| 336 | browsers = values.split(",") |
| 337 | for browser in browsers: |
| 338 | try: |
| 339 | SeleniumTestCaseBase.import_webdriver(browser) |
| 340 | except ImportError: |
| 341 | raise argparse.ArgumentError( |
| 342 | self, "Selenium browser specification '%s' is not valid." % browser |
| 343 | ) |
| 344 | setattr(namespace, self.dest, browsers) |
| 345 | |
| 346 | |
| 347 | def django_tests( |
nothing calls this directly
no test coverage detected