cli: drop no cover pragma

We don't really enforce 100% coverage anymore
This commit is contained in:
Jörg Thalheim
2023-07-28 16:13:25 +02:00
parent e219d38c7c
commit 270c3fc2e6
4 changed files with 11 additions and 12 deletions

View File

@@ -62,7 +62,7 @@ class ZerotierController:
resp = urllib.request.urlopen(req)
return json.load(resp)
def status(self) -> dict[str, Any]: # pragma: no cover
def status(self) -> dict[str, Any]:
return self._http_request("/status")
def create_network(self, data: dict[str, Any] = {}) -> dict[str, Any]:
@@ -75,9 +75,7 @@ class ZerotierController:
def get_network(self, id: str) -> dict[str, Any]:
return self._http_request(f"/controller/network/{id}")
def update_network(
self, id: str, new_config: dict[str, Any]
) -> dict[str, Any]: # pragma: no cover
def update_network(self, id: str, new_config: dict[str, Any]) -> dict[str, Any]:
return self._http_request(
f"/controller/network/{id}", method="POST", data=new_config
)