test(shared): config with required submodel (#1616)
This commit is contained in:
parent
977b499d5e
commit
5769821995
2 changed files with 62 additions and 1 deletions
|
@ -32,6 +32,8 @@ class Config(BaseConfig):
|
|||
config = Config(filepath="/etc/libretime/config.yml")
|
||||
```
|
||||
|
||||
> Don't instantiate a sub model if it has a required field, otherwise the `Config` class import will raise a `ValidationError`.
|
||||
|
||||
### App
|
||||
|
||||
Create an app class that inherit from `libretime_shared.app.AbstractApp`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue