mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
20 lines
567 B
Python
20 lines
567 B
Python
from django.contrib.admin.tests import AdminSeleniumTestCase
|
|
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
|
|
from typing import (
|
|
Callable,
|
|
Dict,
|
|
List,
|
|
Tuple,
|
|
Type,
|
|
Union,
|
|
)
|
|
|
|
|
|
class SeleniumTestCaseBase:
|
|
@staticmethod
|
|
def __new__(
|
|
cls: Type[SeleniumTestCaseBase],
|
|
name: str,
|
|
bases: Union[Tuple[Type[SeleniumTestCase], Type[StaticLiveServerTestCase]], Tuple[Type[AdminSeleniumTestCase]]],
|
|
attrs: Dict[str, Union[str, List[str], Callable]]
|
|
) -> Type[AdminSeleniumTestCase]: ... |