resultsdb_directive now checks the CheckDetails produced from the TAP given on input
it the CheckDetails miss either item or report_type (meaning, that the values are set
to 'non-True-like'), proper exception is raised
Details
Details
unittests work
Diff Detail
Diff Detail
- Repository
- rLTRN libtaskotron
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
LGTM, but please adjust the documentation before pushing.
libtaskotron/directives/resultsdb_directive.py | ||
---|---|---|
33–34 | This should be amended to also mention that we raise this if certain yaml keys (let's name them) are missing. | |
163 | I guess we should change this to
Otherwise we claim that TAP is OK on one line, and then immediately fail on the next line saying that e.g. 'item' is missing. | |
testing/test_resultsdb_directive.py | ||
101–105 | Alternatively, tap = '\n'.join([line for line in self.ref_input['results'].splitlines() if 'item:' not in line]) However, not sure if that's more readable :) |
This should be amended to also mention that we raise this if certain yaml keys (let's name them) are missing.