Skip to content

Commit

Permalink
Merge pull request #610 from NREL-SIIP/cb/valid_config_generator
Browse files Browse the repository at this point in the history
Cb/valid config generator
  • Loading branch information
daniel-thom authored Sep 29, 2020
2 parents 4ab7c78 + e811136 commit 86194ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/generate_validation_config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def generate_config(input_file):
new_field["validation_action"] = field["validation_action"]
new_struct["fields"].append(new_field)
items.append(new_struct)
return items
return {"auto_generated_structs": items}


def generate_file(input_file, output_file):
Expand Down
4 changes: 2 additions & 2 deletions test/test_validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ end
@test_throws(PSY.InvalidValue, add_component!(sys, badline))
)
end
#=

# disabled until serialization is updated
@testset "Test field validation after deserialization" begin
nodes = nodes5()
Expand Down Expand Up @@ -222,4 +222,4 @@ end
rm(path)
end
end
=#

0 comments on commit 86194ce

Please sign in to comment.