From 4f4a675147e7415f658a54cf2676c36d9e8431d1 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Fri, 8 Dec 2023 08:49:17 +0100 Subject: [PATCH] Fix wrong output flag name --- .../backend/src/common/schemas/offliners/freecodecamp.py | 4 ++-- .../tests/integration/routes/schedules/test_freecodecamp.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dispatcher/backend/src/common/schemas/offliners/freecodecamp.py b/dispatcher/backend/src/common/schemas/offliners/freecodecamp.py index f332859a..c50949b8 100644 --- a/dispatcher/backend/src/common/schemas/offliners/freecodecamp.py +++ b/dispatcher/backend/src/common/schemas/offliners/freecodecamp.py @@ -99,7 +99,7 @@ class Meta: metadata={"label": "Debug", "description": "Enable verbose output"}, ) - output_dir = String( + output = String( metadata={ "label": "Output folder", "placeholder": "/output", @@ -107,7 +107,7 @@ class Meta: }, load_default="/output", dump_default="/output", - data_key="output-dir", + data_key="output", validate=validate_output, ) diff --git a/dispatcher/backend/src/tests/integration/routes/schedules/test_freecodecamp.py b/dispatcher/backend/src/tests/integration/routes/schedules/test_freecodecamp.py index 0533dc93..b1a1656e 100644 --- a/dispatcher/backend/src/tests/integration/routes/schedules/test_freecodecamp.py +++ b/dispatcher/backend/src/tests/integration/routes/schedules/test_freecodecamp.py @@ -38,7 +38,7 @@ def test_create_freecodecamp_schedule_ok( patch_data = { "enabled": True, "flags": { - "output-dir": "/output", + "output": "/output", "course": ( "regular-expressions,basic-javascript,basic-data-structures," "debugging,functional-programming,object-oriented-programming,"