Skip to content

Commit

Permalink
Update new_versions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Oct 19, 2023
1 parent 45974be commit cabbdae
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/utilities/new_versions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,14 @@ end
end

@testset "pr_info -- $(typeof(case[1]))" for case in [
(nothing, "add new compat entry for", "pull request sets the compat")
("", "bump compat for", "pull request changes the compat")
(nothing, "add new compat entry for", "pull request sets the compat", "deps")
("", "bump compat for", "pull request changes the compat", "weakdeps")
]
verbatim, expected_title, expected_body = case
title, body = CompatHelper.pr_info(verbatim, "", "", "", "", "", "", "")
verbatim, expected_title, expected_body, section = case
title, body = CompatHelper.pr_info(verbatim, "", section, "", "", "", "", "", "")

@test contains(title, expected_title)
@test contains(title, " $section")
@test contains(body, expected_body)
end

Expand Down Expand Up @@ -436,6 +437,7 @@ end
options,
subdir,
local_clone_path=mktempdir(),
dep_section="deps",
),
)
end
Expand All @@ -458,6 +460,7 @@ end
options,
subdir,
local_clone_path=mktempdir(),
dep_section="deps",
),
)
end
Expand Down Expand Up @@ -512,6 +515,7 @@ end
options,
subdir,
local_clone_path=tmpdir,
dep_section="deps",
)
@test pr isa GitHub.PullRequest

Expand All @@ -534,6 +538,7 @@ end
options,
subdir,
local_clone_path=tmpdir,
dep_section="deps",
)
@test pr isa GitHub.PullRequest
end
Expand Down

0 comments on commit cabbdae

Please sign in to comment.