From 4ba26052390fac98747b80bfb582acd2326332f5 Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Mon, 12 Nov 2018 14:51:31 -0600 Subject: [PATCH] Fix log test and formatting --- test/tests.jl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/tests.jl b/test/tests.jl index 060be6c..aa95582 100644 --- a/test/tests.jl +++ b/test/tests.jl @@ -27,14 +27,14 @@ const test_file = tempname() const default_dir = Pkg.devdir() const gitconfig = GitConfig(joinpath(@__DIR__, "gitconfig")) const template_text = """ -PKGNAME: {{PKGNAME}} -VERSION: {{VERSION}}} -{{#DOCUMENTER}}Documenter{{/DOCUMENTER}} -{{#CODECOV}}Codecov{{/CODECOV}} -{{#COVERALLS}}Coveralls{{/COVERALLS}} -{{#AFTER}}After{{/AFTER}} -{{#OTHER}}Other{{/OTHER}} -""" + PKGNAME: {{PKGNAME}} + VERSION: {{VERSION}}} + {{#DOCUMENTER}}Documenter{{/DOCUMENTER}} + {{#CODECOV}}Codecov{{/CODECOV}} + {{#COVERALLS}}Coveralls{{/COVERALLS}} + {{#AFTER}}After{{/AFTER}} + {{#OTHER}}Other{{/OTHER}} + """ write(test_file, template_text) @testset "Template creation" begin @@ -333,7 +333,7 @@ end @testset "Git-less template creation" begin if isempty(LibGit2.getconfig("user.name", "")) - @test_nowarn Template(; user=me, git=false) + @test_logs Template(; user=me, git=false) end end