Commit d869747
committed
Refactor kwargs validation tests based on feedback
Address review feedback from OriolAbril on PR arviz-devs#314:
- Only test accessor methods that accept **kwargs
- Use pytest.mark.parametrize to reduce test duplication
- Remove test docstrings (test names are self-explanatory)
- Use importorskip pattern for minimal environment support
- Use datatree fixture from conftest.py instead of redefining
- Remove INVESTIGATION_SUMMARY.md from repository
- Import numpy at module level instead of inside test functions
- Follow the same pattern as tests in PR arviz-devs#143
The parametrized test covers 20 accessor methods, with 3 additional
tests for methods that require positional arguments before **kwargs.
All 23 tests pass successfully.1 parent e46fc07 commit d869747
3 files changed
Lines changed: 40 additions & 345 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
75 | 115 | | |
76 | 116 | | |
77 | 117 | | |
| |||
This file was deleted.
0 commit comments