forked from Wavyzz/py-healthchecks.io
feat: 100% test coverage
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
Schemas for integrations
|
||||
https://healthchecks.io/docs/api/
|
||||
"""
|
||||
from typing import Dict
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
@@ -9,3 +11,7 @@ class Integration(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
kind: str
|
||||
|
||||
@classmethod
|
||||
def from_api_result(cls, integration_dict: Dict[str, str]) -> "Integration":
|
||||
return cls(**integration_dict)
|
||||
|
||||
Reference in New Issue
Block a user