Commit Graph

14 Commits

Author SHA1 Message Date
Kieran Ryan 06bc96e8ab Require future annotations import for tests (I002)
- Applied through ruff `--fix`
- Subsequently simplified optional in `tests/feature/test_report.py`
2024-12-31 19:23:00 +00:00
Alessio Bogon 4eb54fdc7a
Raise an error if a step defines reserved argument names
This can cause headaches in the future, when users can't figure out why their step argument 'datatable' or 'docstring' does not get the value they expect
2024-11-30 23:54:06 +01:00
Jason Allen 1278cd9fa8 Update tests based on feedback 2024-10-17 06:34:42 +01:00
jsa34 3c3fa77ffb
Merge branch 'master' into docstrings 2024-10-16 06:59:27 +01:00
Jason Allen 8fe17df22a Fix making datatable and docstring available as kwargs 2024-10-15 21:56:18 +01:00
Alessio Bogon 178b12f038
Fix flake8 issues 2024-10-15 20:17:14 +02:00
Jason Allen 2545c1daa9 Remove references to multiline strings
Add docstring
2024-10-15 13:30:58 +01:00
jsa34 ae93a21f60
Update test_datatable.py
Remove outdated and incorrect type hint in test
2024-10-10 06:54:17 +01:00
Jason Allen 222346a9b6 Feedback response 2024-10-07 07:02:11 +01:00
Jason Allen 8b75426c2a Feedback response 2024-10-06 21:57:05 +01:00
Jason Allen 2bfc1ebb6f Remove unused imports 2024-10-05 10:31:44 +01:00
Jason Allen 7bdd1d62c1 Make the test clearer what is being tested 2024-10-05 10:30:27 +01:00
Jason Allen bade62a9de Remove accidental duplication of code
Remove unnecessary safeguards (as the parser already does these!)
Add test to increase coverage
2024-10-03 20:40:53 +01:00
Jason Allen 035e5c58ec Add datatables
Fix casing of attributes of some parser classes (camel -> snake case)
Fix mistake that datatables are parsed the same as example tables.
Make data_table fixture only generated if a data table exists for a given step, otherwise the fixture is not generated.
Added methods to translate data table to a map/dict (using the first row as keys) and the ability to transpose the datatable for the case of vertical vs. horizontal data tables.
2024-10-03 13:41:33 +01:00