Skip to content

Commit

Permalink
tests: run "garden fmt"
Browse files Browse the repository at this point in the history
  • Loading branch information
davvid committed Jun 2, 2024
1 parent 16dc4f9 commit e4fd289
Showing 1 changed file with 8 additions and 48 deletions.
56 changes: 8 additions & 48 deletions tests/plant_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,10 @@ fn plant_keep_variables_oneline() -> Result<()> {
assert_eq!(tree.remotes.get("origin").unwrap().get_expr(), "${storage}");
}
// Grow the tree.
common::exec_garden(&[
"--chdir",
&fixture_root,
"grow",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "grow", tree_name])?;
assert!(fixture.pathbuf(tree_name).exists());
// Re-plant the tree and ensure that the variables are retained.
common::exec_garden(&[
"--chdir",
&fixture_root,
"plant",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "plant", tree_name])?;
{
let app_context = garden::model::ApplicationContext::from_path_and_root(
&fixture_config_pathbuf,
Expand Down Expand Up @@ -310,20 +300,10 @@ fn plant_keep_variables_simple() -> Result<()> {
assert_eq!(tree.remotes.get("origin").unwrap().get_expr(), "${storage}");
}
// Grow the tree.
common::exec_garden(&[
"--chdir",
&fixture_root,
"grow",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "grow", tree_name])?;
assert!(fixture.pathbuf(tree_name).exists());
// Re-plant the tree and ensure that the variables are retained.
common::exec_garden(&[
"--chdir",
&fixture_root,
"plant",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "plant", tree_name])?;
{
let app_context = garden::model::ApplicationContext::from_path_and_root(
&fixture_config_pathbuf,
Expand Down Expand Up @@ -364,21 +344,11 @@ fn plant_keep_variables_with_remotes() -> Result<()> {
);
}
// Grow the tree.
common::exec_garden(&[
"--chdir",
&fixture_root,
"grow",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "grow", tree_name])?;

assert!(fixture.pathbuf(tree_name).exists());
// Re-plant the tree and ensure that the variables are retained.
common::exec_garden(&[
"--chdir",
&fixture_root,
"plant",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "plant", tree_name])?;
{
let app_context = garden::model::ApplicationContext::from_path_and_root(
&fixture_config_pathbuf,
Expand Down Expand Up @@ -422,20 +392,10 @@ fn plant_keep_variables_with_templates() -> Result<()> {
);
}
// Grow the tree.
common::exec_garden(&[
"--chdir",
&fixture_root,
"grow",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "grow", tree_name])?;
assert!(fixture.pathbuf(tree_name).exists());
// Re-plant the tree and ensure that the variables are retained.
common::exec_garden(&[
"--chdir",
&fixture_root,
"plant",
tree_name,
])?;
common::exec_garden(&["--chdir", &fixture_root, "plant", tree_name])?;
{
let app_context = garden::model::ApplicationContext::from_path_and_root(
&fixture_config_pathbuf,
Expand Down

0 comments on commit e4fd289

Please sign in to comment.