Fix CI
This commit is contained in:
parent
f8ad48978b
commit
0dfe812adb
1 changed files with 26 additions and 10 deletions
|
@ -368,17 +368,33 @@ defmodule RDF.Graph.BuilderTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "require" do
|
test "require" do
|
||||||
{graph, log} =
|
if Version.match?(System.version(), ">= 1.13.0") do
|
||||||
with_log(fn ->
|
{graph, log} =
|
||||||
RDF.Graph.build do
|
with_log(fn ->
|
||||||
require Logger
|
RDF.Graph.build do
|
||||||
Logger.info("logged successfully")
|
require Logger
|
||||||
EX.S |> EX.p(EX.O)
|
Logger.info("logged successfully")
|
||||||
end
|
EX.S |> EX.p(EX.O)
|
||||||
end)
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
assert graph == RDF.graph(EX.S |> EX.p(EX.O))
|
assert graph == RDF.graph(EX.S |> EX.p(EX.O))
|
||||||
assert log =~ "logged successfully"
|
assert log =~ "logged successfully"
|
||||||
|
else
|
||||||
|
log =
|
||||||
|
capture_log(fn ->
|
||||||
|
graph =
|
||||||
|
RDF.Graph.build do
|
||||||
|
require Logger
|
||||||
|
Logger.info("logged successfully")
|
||||||
|
EX.S |> EX.p(EX.O)
|
||||||
|
end
|
||||||
|
|
||||||
|
assert graph == RDF.graph(EX.S |> EX.p(EX.O))
|
||||||
|
end)
|
||||||
|
|
||||||
|
assert log =~ "logged successfully"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
test "use" do
|
test "use" do
|
||||||
|
|
Loading…
Reference in a new issue