Fix log test and formatting
This commit is contained in:
parent
b82050cd0f
commit
4ba2605239
@ -27,14 +27,14 @@ const test_file = tempname()
|
|||||||
const default_dir = Pkg.devdir()
|
const default_dir = Pkg.devdir()
|
||||||
const gitconfig = GitConfig(joinpath(@__DIR__, "gitconfig"))
|
const gitconfig = GitConfig(joinpath(@__DIR__, "gitconfig"))
|
||||||
const template_text = """
|
const template_text = """
|
||||||
PKGNAME: {{PKGNAME}}
|
PKGNAME: {{PKGNAME}}
|
||||||
VERSION: {{VERSION}}}
|
VERSION: {{VERSION}}}
|
||||||
{{#DOCUMENTER}}Documenter{{/DOCUMENTER}}
|
{{#DOCUMENTER}}Documenter{{/DOCUMENTER}}
|
||||||
{{#CODECOV}}Codecov{{/CODECOV}}
|
{{#CODECOV}}Codecov{{/CODECOV}}
|
||||||
{{#COVERALLS}}Coveralls{{/COVERALLS}}
|
{{#COVERALLS}}Coveralls{{/COVERALLS}}
|
||||||
{{#AFTER}}After{{/AFTER}}
|
{{#AFTER}}After{{/AFTER}}
|
||||||
{{#OTHER}}Other{{/OTHER}}
|
{{#OTHER}}Other{{/OTHER}}
|
||||||
"""
|
"""
|
||||||
write(test_file, template_text)
|
write(test_file, template_text)
|
||||||
|
|
||||||
@testset "Template creation" begin
|
@testset "Template creation" begin
|
||||||
@ -333,7 +333,7 @@ end
|
|||||||
|
|
||||||
@testset "Git-less template creation" begin
|
@testset "Git-less template creation" begin
|
||||||
if isempty(LibGit2.getconfig("user.name", ""))
|
if isempty(LibGit2.getconfig("user.name", ""))
|
||||||
@test_nowarn Template(; user=me, git=false)
|
@test_logs Template(; user=me, git=false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user