mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
some nocovers
This commit is contained in:
@@ -41,11 +41,11 @@ class BasePlugin:
|
|||||||
PLUGIN_NAME: str = ""
|
PLUGIN_NAME: str = ""
|
||||||
|
|
||||||
def __init__(self, **_: Any) -> None:
|
def __init__(self, **_: Any) -> None:
|
||||||
pass
|
pass # pragma: nocover
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_options(cls) -> Dict[str, Option]:
|
def get_options(cls) -> Dict[str, Option]:
|
||||||
return {}
|
return {} # pragma: nocover
|
||||||
|
|
||||||
|
|
||||||
# =====
|
# =====
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ from .. import get_plugin_class
|
|||||||
# =====
|
# =====
|
||||||
class BaseAuthService(BasePlugin):
|
class BaseAuthService(BasePlugin):
|
||||||
async def login(self, user: str, passwd: str) -> bool:
|
async def login(self, user: str, passwd: str) -> bool:
|
||||||
raise NotImplementedError
|
raise NotImplementedError # pragma: nocover
|
||||||
|
|
||||||
async def cleanup(self) -> None:
|
async def cleanup(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user