diff options
| author | matin <matin.kaufmann@gmail.com> | 2025-09-12 13:09:45 +0200 |
|---|---|---|
| committer | matin <matin.kaufmann@gmail.com> | 2025-09-12 13:09:45 +0200 |
| commit | 39654f7140ebfeafc2473ceb7e4739ed6d03fc1c (patch) | |
| tree | 0db56d48437ebceaf982ac6bfdc16f5f09cf3279 /test.py | |
| parent | 5d8131ca9cc982488da34c97022132532bf19868 (diff) | |
partieller rueckwechsel zu merge
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -19,13 +19,13 @@ def test_calculate_prediction(): date_calculator = DateCalculator() calendar_manager = CalendarManager() - prediction_controller = PredictionController(calendar_manager, date_calculator, ["Erziehungszeit 100%", "Erziehungszeit 50%", "Erziehungszeit pauschal", "Sonstige"]) + prediction_controller = PredictionController(calendar_manager, date_calculator, ["EZ 100%", "EZ 50%", "EZ pauschal", "Sonstige"]) calendar_manager.add_entry(event1_str[0], event1_str[1], "Sonstige") calendar_manager.add_entry(event2_str[0], event2_str[1], "Sonstige") - calendar_manager.add_entry(project1_str[0], project1_str[1], "Erziehungszeit 100%") - calendar_manager.add_entry(project2_str[0], project2_str[1], "Erziehungszeit 50%") - calendar_manager.add_entry(project3_str[0], project3_str[1], "Erziehungszeit 50%") + calendar_manager.add_entry(project1_str[0], project1_str[1], "EZ 100%") + calendar_manager.add_entry(project2_str[0], project2_str[1], "EZ 50%") + calendar_manager.add_entry(project3_str[0], project3_str[1], "EZ 50%") # Set launch date and duration prediction_controller.make_prediction("2023-01-01", 2) @@ -36,13 +36,6 @@ def test_calculate_prediction(): print(f"Predicted completion date: {prediction}") print(calendar_manager.list_entries()) - prediction_controller.make_prediction("2023-02-01", 2) - - prediction = prediction_controller.get_prediction() - - # Output the result - print(f"Predicted completion date: {prediction}") - print(calendar_manager.list_entries()) # Run the test test_calculate_prediction()
\ No newline at end of file |
