diff --git a/cylc/flow/network/schema.py b/cylc/flow/network/schema.py index 84e4afe7a3..f5aaddae6e 100644 --- a/cylc/flow/network/schema.py +++ b/cylc/flow/network/schema.py @@ -1887,8 +1887,8 @@ class Arguments: workflows = graphene.List(WorkflowID, required=True) reload_global = Boolean( - default_value=False, - description="Also reload global config") + default_value=False, + description="Also reload global config") result = GenericScalar() diff --git a/cylc/flow/scripts/reload.py b/cylc/flow/scripts/reload.py index a0250a21c0..1d1b89ed99 100755 --- a/cylc/flow/scripts/reload.py +++ b/cylc/flow/scripts/reload.py @@ -91,9 +91,9 @@ def get_option_parser(): ) parser.add_option( - "-g", "--global", - help="also reload global configuration.", - action="store_true", default=False, dest="reload_global") + "-g", "--global", + help="also reload global configuration.", + action="store_true", default=False, dest="reload_global") return parser diff --git a/tests/unit/cfgspec/test_globalcfg.py b/tests/unit/cfgspec/test_globalcfg.py index 83f6ec9024..996d0fa4d9 100644 --- a/tests/unit/cfgspec/test_globalcfg.py +++ b/tests/unit/cfgspec/test_globalcfg.py @@ -174,29 +174,3 @@ def test_platform_ssh_forward_variables(mock_global_config): ''') assert glblcfg.get(['platforms','foo','ssh forward environment variables']) == ["FOO", "BAR"] - -def test_reload(mock_global_config, tmp_path): - # Load a config - glblcfg: GlobalConfig = mock_global_config(f''' - [platforms] - [[foo]] - [[[meta]]] - x = 1 - ''') - - # Update the global config file and reload - conf_path = tmp_path / GlobalConfig.CONF_BASENAME - conf_path.write_text(''' - [platforms] - [[foo]] - [[[meta]]] - x = 2 - ''') - glblcfg.load() - - assert glblcfg.get(['platforms','foo','meta','x']) == '2' - - from cylc.flow.platforms import get_platform - platform = get_platform("foo") - - assert platform['meta']['x'] == "2"