Skip to content

Commit

Permalink
Added back in MySQL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCedarPrince committed Jul 21, 2023
1 parent 53e1006 commit f69c868
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ using DBConnector
end


@testset "_dbconnect function for MySQL" begin

conn = DBConnector._dbconnect(MySQL.Connection, ENV["MYSQL_HOST"], ENV["MYSQL_USER"], ENV["MYSQL_PASSWORD"], db="MySQL")

@test typeof(conn) == MySQL.Connection
@test isopen(conn)
close(conn)

end

@testset "_dbconnect function for LibPQ" begin

conn= DBConnector._dbconnect(LibPQ.Connection, host = ENV["POSTGRES_HOST"], user = ENV["POSTGRES_USER"], dbname = "mimic", password = ENV["POSTGRES_PASSWORD"])
Expand Down

0 comments on commit f69c868

Please sign in to comment.