From 3a8acedce61505969cef742b1bc79fd7787953e5 Mon Sep 17 00:00:00 2001 From: GabrielKS <23368820+GabrielKS@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:07:44 -0700 Subject: [PATCH] Gracefully skip tests when file is missing --- test/test_psse_export.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_psse_export.jl b/test/test_psse_export.jl index 0e87efe0..bc87b3a6 100644 --- a/test/test_psse_export.jl +++ b/test/test_psse_export.jl @@ -356,6 +356,7 @@ end # I test so much, my tests have tests @testset "Test system comparison utilities" begin sys = load_test_system() + isnothing(sys) && return @test compare_systems_wrapper(sys, sys) @test compare_systems_wrapper(sys, deepcopy(sys)) @@ -363,6 +364,7 @@ end @testset "PSSE Exporter with system_240[32].json, v33" begin sys = load_test_system() + isnothing(sys) && return # PSS/E version must be one of the supported ones @test_throws ArgumentError PSSEExporter(sys, :vNonexistent, test_psse_export_dir)