You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the interactive test suite, one test always fails in Simulated inputs / Quotes.
The user and dir keyword arguments to Template are given with escaped quotes:
@testset"Quotes"beginprint(
stdin.buffer,
CR, DOWN^2, CR, DONE, # Customize user and dir"\"me\"", LF, # Enter user with quotes"\"~\"", LF, # Enter home dir with quotes
)
t1 =Template(; interactive=true) # debug addition
t2 =Template(; user="me", dir="~") # debug addition@warn"Quotes" t1.user t1.dir t2.user t2.dir # debug addition
result =Template(; interactive=true) ==Template(; user="me", dir="~")
ifget(ENV, "CI", "false") =="true"@test_broken result
else@test result
end
[...]
end
While it works for dir (quotes are removed), it fails for user:
Enter value for'user' (required): Enter value for'dir' (default:/tmp/jl_lgEt7r/dev): ┌ Warning: Quotes
│ t1.user ="\"me\""
│ t1.dir ="/home/gdalle"
│ t2.user ="me"
│ t2.dir ="/home/gdalle"
└ @ Main ~/Work/GitHub/Julia/PkgTemplates.jl/test/interactive.jl:200
Any idea why this happens?
The text was updated successfully, but these errors were encountered:
gdalle
changed the title
Quote test is failing locally and ignored on CI
Quotes test is failing locally and ignored on CI
Oct 12, 2023
In the interactive test suite, one test always fails in
Simulated inputs / Quotes
.The
user
anddir
keyword arguments toTemplate
are given with escaped quotes:While it works for
dir
(quotes are removed), it fails foruser
:Any idea why this happens?
The text was updated successfully, but these errors were encountered: