Add more git tests

This commit is contained in:
Chris de Graaf 2018-11-09 14:51:51 -06:00
parent 3ecb8442ff
commit b82050cd0f
2 changed files with 21 additions and 8 deletions

View File

@ -43,6 +43,13 @@
@test !t.manifest
@test isempty(t.plugins)
println()
# Host and SSH aren't prompted for when git is disabled.
write(stdin.buffer, "$me\n\n\r\n\nd")
t = interactive_template(; git=false)
@test t.host == "github.com"
@test !t.ssh
println()
end
@testset "Package generation" begin

View File

@ -331,6 +331,12 @@ end
rm(temp_dir; recursive=true)
end
@testset "Git-less template creation" begin
if isempty(LibGit2.getconfig("user.name", ""))
@test_nowarn Template(; user=me, git=false)
end
end
@testset "Git-less package generation" begin
t = Template(; user=me)
generate(test_pkg, t; git=false)