Skip to content
Snippets Groups Projects

ENH: Add minimal functionality

Merged Florian Spreckelsen requested to merge f-minimal into dev
1 file
+ 14
5
Compare changes
  • Side-by-side
  • Inline
+ 14
5
@@ -23,9 +23,18 @@
using Test
using CaosDB
if haskey(ENV, "SHELL")
shell_var = ENV["SHELL"]
else
shell_var = "default"
@testset "CaosDBUnitTests" begin
@testset "TestUtility" begin
if haskey(ENV, "SHELL")
shell_var = ENV["SHELL"]
else
shell_var = "default"
end
@test CaosDB.Utility.get_env_var("SHELL", "default") == shell_var
end
@testset "TestExceptions" begin
@test CaosDB.Exceptions.evaluate_return_code(Cint(0)) == nothing
@test_throws CaosDB.Exceptions.CaosDBException CaosDB.Exceptions.evaluate_return_code(Cint(14))
end
end
@test CaosDB.Utility.get_env_var("SHELL", "default") == shell_var
Loading