add tests for the django test suite

This commit is contained in:
Maxim Kurnikov
2019-01-26 17:17:35 +03:00
parent 38e841c4c7
commit 1afa079b0b
18 changed files with 232 additions and 57 deletions

View File

@@ -0,0 +1 @@
from .messages import Warning as Warning, Info as Info, Debug as Debug, Error as Error, Critical as Critical

View File

@@ -1,4 +1,4 @@
from typing import Any, Optional, Union
from typing import Any, Optional
DEBUG: int
INFO: int

View File

@@ -1,4 +1,4 @@
from typing import Any, List, Optional
from typing import Any, List
from django.core.checks.messages import Warning

View File

@@ -31,10 +31,15 @@ class FileSystemStorage(Storage):
file_permissions_mode: Optional[int] = ...,
directory_permissions_mode: Optional[int] = ...,
) -> None: ...
@property
def base_location(self) -> str: ...
@property
def location(self) -> str: ...
@property
def base_url(self) -> str: ...
@property
def file_permissions_mode(self) -> Optional[int]: ...
@property
def directory_permissions_mode(self) -> Optional[int]: ...
class DefaultStorage(LazyObject): ...

View File

@@ -1,6 +1,6 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from django.core.management.base import BaseCommand as BaseCommand
from django.core.management.base import BaseCommand as BaseCommand, CommandError as CommandError
def find_commands(management_dir: str) -> List[str]: ...
def load_command_class(app_name: str, name: str) -> BaseCommand: ...

View File

@@ -60,7 +60,7 @@ class BaseCommand:
def add_arguments(self, parser: CommandParser) -> None: ...
def print_help(self, prog_name: str, subcommand: str) -> None: ...
def run_from_argv(self, argv: List[str]) -> None: ...
def execute(self, *args: Any, **options: Any) -> Optional[Union[Tuple, str]]: ...
def execute(self, *args: Any, **options: Any) -> Any: ...
def check(
self,
app_configs: Optional[List[AppConfig]] = ...,