Skip to content

Commit

Permalink
Fix golden expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-quintero committed Oct 21, 2024
1 parent e7207b7 commit 432ff7a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 83 deletions.
122 changes: 42 additions & 80 deletions .nextmv/golden/python-nextroute/inputs/input.json.golden
Original file line number Diff line number Diff line change
@@ -1,85 +1,47 @@
{
"options": {
"nextmv": {
"format_disable_progression": true,
"input": "input.json",
"output": "output.json",
"solve_duration": 3,
"solve_iterations": 50,
"solve_parallelruns": 1,
"solve_rundeterministically": true,
"solve_startsolutions": 1
},
"nextroute": {
"check": {
"duration": 30,
"verbosity": "off"
},
"format": {
"disable": {
"progression": true
}
},
"model": {
"constraints": {
"disable": {
"attributes": false,
"capacities": [],
"capacity": false,
"distance_limit": false,
"groups": false,
"maximum_duration": false,
"maximum_stops": false,
"maximum_wait_stop": false,
"maximum_wait_vehicle": false,
"mixing_items": false,
"precedence": false,
"start_time_windows": false,
"vehicle_end_time": false,
"vehicle_start_time": false
},
"enable": {
"cluster": false
}
},
"objectives": {
"capacities": "",
"cluster": 0,
"early_arrival_penalty": 1,
"late_arrival_penalty": 1,
"min_stops": 1,
"travel_duration": 0,
"unplanned_penalty": 1,
"vehicle_activation_penalty": 1,
"vehicles_duration": 1
},
"properties": {
"disable": {
"duration_groups": false,
"durations": false,
"initial_solution": false,
"stop_duration_multipliers": false
}
},
"validate": {
"disable": {
"resources": false,
"start_time": false
},
"enable": {
"matrix": false,
"matrix_asymmetry_tolerance": 20
}
}
},
"solve": {
"duration": 3,
"iterations": 50,
"parallel_runs": 1,
"run_deterministically": true,
"start_solutions": 1
}
}
"check_duration": 30,
"check_verbosity": "off",
"format_disable_progression": true,
"input": "input.json",
"model_constraints_disable_attributes": false,
"model_constraints_disable_capacities": [],
"model_constraints_disable_capacity": false,
"model_constraints_disable_distancelimit": false,
"model_constraints_disable_groups": false,
"model_constraints_disable_maximumduration": false,
"model_constraints_disable_maximumstops": false,
"model_constraints_disable_maximumwaitstop": false,
"model_constraints_disable_maximumwaitvehicle": false,
"model_constraints_disable_mixingitems": false,
"model_constraints_disable_precedence": false,
"model_constraints_disable_starttimewindows": false,
"model_constraints_disable_vehicleendtime": false,
"model_constraints_disable_vehiclestarttime": false,
"model_constraints_enable_cluster": false,
"model_objectives_capacities": "",
"model_objectives_cluster": 0,
"model_objectives_earlyarrivalpenalty": 1,
"model_objectives_latearrivalpenalty": 1,
"model_objectives_minstops": 1,
"model_objectives_travelduration": 0,
"model_objectives_unplannedpenalty": 1,
"model_objectives_vehicleactivationpenalty": 1,
"model_objectives_vehiclesduration": 1,
"model_properties_disable_durationgroups": false,
"model_properties_disable_durations": false,
"model_properties_disable_initialsolution": false,
"model_properties_disable_stopdurationmultipliers": false,
"model_validate_disable_resources": false,
"model_validate_disable_starttime": false,
"model_validate_enable_matrix": false,
"model_validate_enable_matrixasymmetrytolerance": 20,
"output": "output.json",
"solve_duration": 3,
"solve_iterations": 50,
"solve_parallelruns": 1,
"solve_rundeterministically": true,
"solve_startsolutions": 1
},
"solution": {
"objective": {
Expand Down
4 changes: 2 additions & 2 deletions .nextmv/golden/python-nextroute/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func TestGolden(t *testing.T) {
TransientFields: []golden.TransientField{
{Key: "$.statistics.result.duration", Replacement: golden.StableFloat},
{Key: "$.statistics.run.duration", Replacement: golden.StableFloat},
{Key: "$.options.nextmv.output", Replacement: "output.json"},
{Key: "$.options.nextmv.input", Replacement: "input.json"},
{Key: "$.options.output", Replacement: "output.json"},
{Key: "$.options.input", Replacement: "input.json"},
},
Thresholds: golden.Tresholds{
Float: 0.01,
Expand Down
2 changes: 1 addition & 1 deletion python-nextroute/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nextroute==1.8.0
nextroute==1.8.1
nextmv==0.13.1

0 comments on commit 432ff7a

Please sign in to comment.