You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`case`|`str`| Name of the test case, complies to `[a-zA-Z0-9]` pattern |
34
+
|`main`|`str`| Portion of the code as if written in `.py` file |
35
+
|`files`|`Optional[List[File]]=[]`\*| List of extra files to simulate imports if needed |
36
+
|`disable_cache`|`Optional[bool]=False`| Set to `true` disables `mypy` caching |
37
+
|`mypy_config`|`Optional[Dict[str, Union[str, int, bool, float]]]={}`| Inline `mypy` configuration, passed directly to `mypy` as `--config-file` option |
38
+
|`env`|`Optional[Dict[str, str]]={}`| Environmental variables to be provided inside of test run |
39
+
|`parametrized`|`Optional[List[Parameter]]=[]`\*| List of parameters, similar to [`@pytest.mark.parametrize`](https://docs.pytest.org/en/stable/parametrize.html)|
40
+
|`skip`|`str`| Expression evaluated with following globals set: `sys`, `os`, `pytest` and `platform`|
41
+
42
+
Appendix to **pseudo** types used above:
43
+
44
+
```python
45
+
classFile:
46
+
path: str
47
+
content: Optional[str] =None
48
+
Parameter = Mapping[str, Any]
49
+
```
50
+
51
+
Implementation notes:
52
+
53
+
-`main` must be non-empty string that evaluates to valid **Python** code,
54
+
-`content` of each of extra files must evaluate to valid **Python** code,
55
+
-`parametrized` entries must all be the objects of the same _type_. It simply means that each
56
+
entry must have **exact** same set of keys,
57
+
-`skip` - an expression set in `skip` is passed directly into
58
+
[`eval`](https://docs.python.org/3/library/functions.html#eval). It is advised to take a peek and
0 commit comments