test(shared): config with required submodel (#1616)

This commit is contained in:
Jonas L 2022-02-20 21:11:49 +01:00 committed by GitHub
parent 977b499d5e
commit 5769821995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 1 deletions

View file

@ -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`.