def METHOD_NAME(with_config, monkeypatch):
    monkeypatch.setattr('os.environ', dict(NOMAD_FS_PUBLIC='test_value'))
    os.environ['NOMAD_FS_PUBLIC'] = 'test_value'
    config._apply_env_variables()
    assert config.fs.public == 'test_value'