Skip to content

Commit

Permalink
Rewrote test to be compatible with Julia 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
clizbe committed Oct 18, 2023
1 parent e50a991 commit 23ad125
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ end
[(:investable, Bool, String7), (:peak_demand, Float64, String7)]

# Example 2 - bad data, verbose
expected_error_message = "bad-assets-data.csv failed validation\n [1] missing columns: [:id]\n [2] incompatible column types:\n - investable::String7 (expected: Bool)\n - peak_demand::String7 (expected: Float64)"
@test_throws expected_error_message TulipaEnergyModel.validate_df(
@test_throws ErrorException TulipaEnergyModel.validate_df(
df,
TulipaEnergyModel.AssetData;
fname = "bad-assets-data.csv",
Expand Down

0 comments on commit 23ad125

Please sign in to comment.