Skip to content

Commit

Permalink
Fix default param values in broken test case for TracContext
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-traverse committed Jun 5, 2023
1 parent f0e1cef commit 033a5e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tracdap-runtime/python/test/tracdap_test/rt/exec/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,27 @@ def define_parameters(self) -> tp.Dict[str, _api.ModelParameter]:

_api.P("integer_param", _api.BasicType.INTEGER,
label="An integer param",
default_value=False),
default_value=1),

_api.P("float_param", _api.BasicType.FLOAT,
label="A float param",
default_value=False),
default_value=1.0),

_api.P("decimal_param", _api.BasicType.DECIMAL,
label="A decimal param",
default_value=False),
default_value=1.0),

_api.P("string_param", _api.BasicType.STRING,
label="A string param",
default_value=False),
default_value="hello"),

_api.P("date_param", _api.BasicType.DATE,
label="A date param",
default_value=False),
default_value="2000-01-01"), # type coercion string -> date

_api.P("datetime_param", _api.BasicType.DATETIME,
label="A datetime param",
default_value=False))
default_value=datetime.datetime.now())) # Using Python datetime values also works

def define_inputs(self) -> tp.Dict[str, _api.ModelInputSchema]:

Expand Down

0 comments on commit 033a5e7

Please sign in to comment.