Skip to content

Commit 460ad7d

Browse files
author
Alan Christie
committed
fix: Jote no longer insists on test options
1 parent d461e77 commit 460ad7d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/jote/jote.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,13 @@ def _run_a_test(
573573

574574
# Render the command for this test.
575575

576-
# First extract the variables and values from 'options'
577-
# and then 'inputs'.
576+
# First extract any variables and values from 'options' (if there are any).
578577
job_variables: Dict[str, Any] = {}
579-
for variable in job_definition.tests[job_test_name].options:
580-
job_variables[variable] = job_definition.tests[job_test_name].options[variable]
578+
if job_definition.tests[job_test_name].options:
579+
for variable in job_definition.tests[job_test_name].options:
580+
job_variables[variable] = job_definition.tests[job_test_name].options[
581+
variable
582+
]
581583

582584
# If the option variable's declaration is 'multiple'
583585
# it must be handled as a list, e.g. it might be declared like this: -

0 commit comments

Comments
 (0)