diff --git a/test/interactive/plugins.jl b/test/interactive/plugins.jl index 26972f2..7ce894a 100644 --- a/test/interactive/plugins.jl +++ b/test/interactive/plugins.jl @@ -1,10 +1,10 @@ @testset "TravisCI" begin write(STDIN.buffer, "\n") p = interactive(TravisCI) - @test get(p.src) == joinpath(DEFAULTS_DIR, "travis.yml") + @test get(p.src, "") == joinpath(DEFAULTS_DIR, "travis.yml") write(STDIN.buffer, "$test_file\n") p = interactive(TravisCI) - @test get(p.src) == test_file + @test get(p.src, "") == test_file write(STDIN.buffer, "none\n") p = interactive(TravisCI) @test isnull(p.src) @@ -16,10 +16,10 @@ end @testset "AppVeyor" begin write(STDIN.buffer, "\n") p = interactive(AppVeyor) - @test get(p.src) == joinpath(DEFAULTS_DIR, "appveyor.yml") + @test get(p.src, "") == joinpath(DEFAULTS_DIR, "appveyor.yml") write(STDIN.buffer, "$test_file\n") p = interactive(AppVeyor) - @test get(p.src) == test_file + @test get(p.src, "") == test_file write(STDIN.buffer, "none\n") p = interactive(AppVeyor) @test isnull(p.src) @@ -31,11 +31,11 @@ end @testset "GitLabCI" begin write(STDIN.buffer, "\n\n") p = interactive(GitLabCI) - @test get(p.src) == joinpath(DEFAULTS_DIR, "gitlab-ci.yml") + @test get(p.src, "") == joinpath(DEFAULTS_DIR, "gitlab-ci.yml") @test p.view == Dict("GITLABCOVERAGE" => true) write(STDIN.buffer, "$test_file\nno\n") p = interactive(GitLabCI) - @test get(p.src) == test_file + @test get(p.src, "") == test_file @test p.view == Dict("GITLABCOVERAGE" => false) write(STDIN.buffer, "none\n\n") p = interactive(GitLabCI) @@ -48,10 +48,10 @@ end @testset "CodeCov" begin write(STDIN.buffer, "\n") p = interactive(CodeCov) - @test get(p.src) == joinpath(DEFAULTS_DIR, "codecov.yml") + @test get(p.src, "") == joinpath(DEFAULTS_DIR, "codecov.yml") write(STDIN.buffer, "$test_file\n") p = interactive(CodeCov) - @test get(p.src) == test_file + @test get(p.src, "") == test_file write(STDIN.buffer, "none\n") p = interactive(CodeCov) @test isnull(p.src) @@ -66,7 +66,7 @@ end @test isnull(p.src) write(STDIN.buffer, "$test_file\n") p = interactive(Coveralls) - @test get(p.src) == test_file + @test get(p.src, "") == test_file write(STDIN.buffer, "none\n") p = interactive(Coveralls) @test isnull(p.src) diff --git a/test/plugins/appveyor.jl b/test/plugins/appveyor.jl index f3e4113..ef0a9e6 100644 --- a/test/plugins/appveyor.jl +++ b/test/plugins/appveyor.jl @@ -7,7 +7,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) @testset "Plugin creation" begin p = AppVeyor() @test isempty(p.gitignore) - @test get(p.src) == joinpath(PkgTemplates.DEFAULTS_DIR, "appveyor.yml") + @test get(p.src, "") == joinpath(PkgTemplates.DEFAULTS_DIR, "appveyor.yml") @test p.dest == ".appveyor.yml" @test p.badges == [ Badge( @@ -20,7 +20,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) p = AppVeyor(; config_file=nothing) @test isnull(p.src) p = AppVeyor(; config_file=test_file) - @test get(p.src) == test_file + @test get(p.src, "") == test_file @test_throws ArgumentError AppVeyor(; config_file=fake_path) end diff --git a/test/plugins/codecov.jl b/test/plugins/codecov.jl index ba37a8a..5d167ae 100644 --- a/test/plugins/codecov.jl +++ b/test/plugins/codecov.jl @@ -7,7 +7,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) @testset "Plugin creation" begin p = CodeCov() @test p.gitignore == ["*.jl.cov", "*.jl.*.cov", "*.jl.mem"] - @test get(p.src) == joinpath(PkgTemplates.DEFAULTS_DIR, "codecov.yml") + @test get(p.src, "") == joinpath(PkgTemplates.DEFAULTS_DIR, "codecov.yml") @test p.dest == ".codecov.yml" @test p.badges == [ Badge( @@ -20,7 +20,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) p = CodeCov(; config_file=nothing) @test isnull(p.src) p = CodeCov(; config_file=test_file) - @test get(p.src) == test_file + @test get(p.src, "") == test_file @test_throws ArgumentError CodeCov(; config_file=fake_path) end diff --git a/test/plugins/coveralls.jl b/test/plugins/coveralls.jl index 9a643d4..fabce93 100644 --- a/test/plugins/coveralls.jl +++ b/test/plugins/coveralls.jl @@ -20,7 +20,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) p = Coveralls(; config_file=nothing) @test isnull(p.src) p = Coveralls(; config_file=test_file) - @test get(p.src) == test_file + @test get(p.src, "") == test_file @test_throws ArgumentError Coveralls(; config_file=fake_path) end diff --git a/test/plugins/gitlabci.jl b/test/plugins/gitlabci.jl index 1850b75..732ac62 100644 --- a/test/plugins/gitlabci.jl +++ b/test/plugins/gitlabci.jl @@ -7,7 +7,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) @testset "Plugin creation" begin p = GitLabCI() @test p.gitignore == ["*.jl.cov", "*.jl.*.cov", "*.jl.mem"] - @test get(p.src) == joinpath(PkgTemplates.DEFAULTS_DIR, "gitlab-ci.yml") + @test get(p.src, "") == joinpath(PkgTemplates.DEFAULTS_DIR, "gitlab-ci.yml") @test p.dest == ".gitlab-ci.yml" @test p.badges == [ Badge( @@ -25,7 +25,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) p = GitLabCI(; config_file=nothing) @test isnull(p.src) p = GitLabCI(; config_file=test_file) - @test get(p.src) == test_file + @test get(p.src, "") == test_file @test_throws ArgumentError GitLabCI(; config_file=fake_path) p = GitLabCI(; coverage=false) @test p.badges == [ diff --git a/test/plugins/travisci.jl b/test/plugins/travisci.jl index a22ace8..4b2409e 100644 --- a/test/plugins/travisci.jl +++ b/test/plugins/travisci.jl @@ -7,7 +7,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) @testset "Plugin creation" begin p = TravisCI() @test isempty(p.gitignore) - @test get(p.src) == joinpath(PkgTemplates.DEFAULTS_DIR, "travis.yml") + @test get(p.src, "") == joinpath(PkgTemplates.DEFAULTS_DIR, "travis.yml") @test p.dest == ".travis.yml" @test p.badges == [ Badge( @@ -20,7 +20,7 @@ pkg_dir = joinpath(temp_dir, test_pkg) p = TravisCI(; config_file=nothing) @test isnull(p.src) p = TravisCI(; config_file=test_file) - @test get(p.src) == test_file + @test get(p.src, "") == test_file @test_throws ArgumentError TravisCI(; config_file=fake_path) end