Coverage for tests/_strategies.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-02-09 12:09 +0100

1from __future__ import annotations 

2 

3from typing import TYPE_CHECKING 

4 

5from hypothesis import strategies as st 

6 

7if TYPE_CHECKING: 

8 from pydantic import BaseModel # noqa: F401 

9 from hypothesis.strategies import SearchStrategy # noqa: F401 

10 

11from harbor_cli.output.table import RENDER_FUNCTIONS 

12 

13 

14COMPACT_TABLE_MODELS = st.one_of( 

15 [st.builds(model) for model in RENDER_FUNCTIONS.keys()] 

16) # type: SearchStrategy[BaseModel]