Skip to content

Commit

Permalink
test: fix unit tests after metadata change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Apr 10, 2021
1 parent 1144b00 commit b4b0bf2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions aer_upd/src/parsers/toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ mod tests {
for the C, C++, C++/CLI, Objective-C, C# and Java programming \
languages."
.into();
metadata
.set_project_source_url("https://sourceforge.net/p/astyle/code/HEAD/tree/")
.unwrap();
metadata
.set_package_source_url(
"https://github.com/AdmiringWorm/chocolatey-packages/tree/master/astyle",
)
.unwrap();
metadata.set_chocolatey({
let mut choco = ChocolateyMetadata::with_authors(&["Jim Pattee", "Tal Davidson"]);
choco.set_description(Description::Location {
Expand Down
3 changes: 2 additions & 1 deletion aer_upd/test-data/deserialize-full.aer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ id = "astyle"
maintainers = ["AdmiringWorm", "yying"]
summary = "Artistic Style is a source code indenter, formater, and beutifier for the C, C++, C++/CLI, Objective-C, C# and Java programming languages."
project_url = "http://astyle.sourceforge.net/"
project_source_url = "https://github.com/AdmiringWorm/chocolatey-packages/tree/master/astyle"
project_source_url = "https://sourceforge.net/p/astyle/code/HEAD/tree/"
package_source_url = "https://github.com/AdmiringWorm/chocolatey-packages/tree/master/astyle"
license = { expression = "MIT", url = "https://sourceforge.net/p/astyle/code/HEAD/tree/trunk/AStyle/LICENSE.md" }

[metadata.chocolatey]
Expand Down
2 changes: 1 addition & 1 deletion aer_upd/test-data/license-expression.aer.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
id = "test-package"
project_url = "https://example-repo.org"
project_url = "https://example.com/MUST_BE_CHANGED"
summary = ""
license = "MIT"
2 changes: 1 addition & 1 deletion aer_upd/test-data/license-long.aer.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
id = "test-package"
project_url = "https://example-repo.org"
project_url = "https://example.com/MUST_BE_CHANGED"
summary = ""

[metadata.license]
Expand Down
2 changes: 1 addition & 1 deletion aer_upd/test-data/license-short.aer.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
id = "test-package"
project_url = "https://example-repo.org"
project_url = "https://example.com/MUST_BE_CHANGED"
summary = ""
license = { url = "https://github.com/WormieCorp/aer/LICENSE.txt", expression = "MIT" }
2 changes: 1 addition & 1 deletion aer_upd/test-data/license-url.aer.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
id = "test-package"
project_url = "https://example-repo.org"
project_url = "https://example.com/MUST_BE_CHANGED"
summary = ""
license = "https://github.com/WormieCorp/aer/LICENSE.txt"

0 comments on commit b4b0bf2

Please sign in to comment.