Skip to content

Commit

Permalink
Merge #2208
Browse files Browse the repository at this point in the history
2208: Fix hardcoded paths in parameter tests r=nefrathenrici a=nefrathenrici



Co-authored-by: nefrathenrici <nat.henrici@gmail.com>
  • Loading branch information
bors[bot] and nefrathenrici authored Oct 6, 2023
2 parents 09c154b + 71eca0c commit 591ae6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parameter_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ default_args = CA.cli_defaults(CA.argparse_settings())
end

@testset "Test unique aliases" begin
config_dict = Dict("toml" => ["parameter_tests.toml"])
config_dict =
Dict("toml" => [joinpath(pkgdir(CA), "test", "parameter_tests.toml")])
config = CA.AtmosConfig(config_dict)
@test_throws ErrorException CP.get_parameter_values!(
config.toml_dict,
Expand All @@ -35,7 +36,7 @@ end
end

@testset "Test all parameter tomls in toml/" begin
toml_path = joinpath("..", "toml")
toml_path = joinpath(pkgdir(CA), "toml")
for toml in readdir(toml_path)
config_dict = Dict("toml" => [joinpath(toml_path, toml)])
config = CA.AtmosConfig(config_dict)
Expand Down

0 comments on commit 591ae6a

Please sign in to comment.