()
| 99 | |
| 100 | |
| 101 | def test_rcparam_stubs(): |
| 102 | runtime_rc_keys = { |
| 103 | name for name in plt.rcParamsDefault.keys() |
| 104 | if not name.startswith('_') |
| 105 | } |
| 106 | |
| 107 | assert {*typing.get_args(RcKeyType)} == runtime_rc_keys |
| 108 | |
| 109 | runtime_rc_group_keys = set() |
| 110 | for name in runtime_rc_keys: |
| 111 | groups = name.split('.') |
| 112 | for i in range(1, len(groups)): |
| 113 | runtime_rc_group_keys.add('.'.join(groups[:i])) |
| 114 | |
| 115 | assert {*typing.get_args(RcGroupKeyType)} == runtime_rc_group_keys |