Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove schema_inputs #76

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/testrel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ struct Step
query::Option{String}
install::Dict{String, String}
broken::Bool
schema_inputs::AbstractDict
inputs::AbstractDict
expected::AbstractDict
expected_problems::Vector
Expand All @@ -161,7 +160,6 @@ function Step(;
query::Option{String}=nothing,
install::AcceptedSourceTypes=Dict{String, String}(),
broken::Bool=false,
schema_inputs::AbstractDict=Dict(),
inputs::AbstractDict=Dict(),
expected::AbstractDict=Dict(),
expected_problems::Vector=[],
Expand All @@ -174,7 +172,6 @@ function Step(;
query,
convert_to_install_kv(install),
broken,
schema_inputs,
inputs,
expected,
expected_problems,
Expand Down Expand Up @@ -265,7 +262,6 @@ function test_rel(;
abort_on_error::Bool=false,
debug::Bool=false,
debug_trace::Bool=false,
schema_inputs::AbstractDict=Dict(),
inputs::AbstractDict=Dict(),
expected::AbstractDict=Dict(),
expected_problems::Vector=[],
Expand Down Expand Up @@ -294,9 +290,6 @@ function test_rel(;
if !isempty(install)
insert!(steps, 1, Step(; install=convert_to_install_kv(install)))
end
if !isempty(schema_inputs)
insert!(steps, 1, Step(; schema_inputs=schema_inputs))
end
if !isempty(inputs)
insert!(steps, 1, Step(; inputs=inputs))
end
Expand Down Expand Up @@ -623,9 +616,6 @@ function _test_rel_step(
#Append inputs to program
program *= convert_input_dict_to_string(step.inputs)

#Append schema inputs to program
program *= convert_input_dict_to_string(step.schema_inputs)

#TODO: Remove this when the incoming tests are appropriately rewritten
program *= generate_output_string_from_expected(step.expected)

Expand Down