mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-05 08:10:39 +00:00
Fix stale test: goal is now optional in run config
The missing_required_fields test was not updated when goal was changed
from String to Option<String> in c143d2c8.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0ca9a309c0
commit
839cbc28b8
1 changed files with 6 additions and 2 deletions
|
|
@ -589,13 +589,17 @@ graph = "p.dot"
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn missing_required_fields() {
|
||||
fn goal_is_optional() {
|
||||
let no_goal = r#"
|
||||
version = 1
|
||||
graph = "p.dot"
|
||||
"#;
|
||||
assert!(parse_run_config(no_goal).is_err());
|
||||
let config = parse_run_config(no_goal).unwrap();
|
||||
assert!(config.goal.is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn graph_is_required() {
|
||||
let no_graph = r#"
|
||||
version = 1
|
||||
goal = "x"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue