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,"