Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Mecoli1219 <michaellai901026@gmail.com>
  • Loading branch information
Mecoli1219 committed Aug 23, 2024
1 parent ebc070c commit d2aa9e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/flytekit/unit/configuration/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ def all_path_not_exists(paths):
Path(Path.home(), ".flyte", "config"),
Path(Path.home(), ".flyte", "config.yaml")
]
config_file = os.getenv(FLYTECTL_CONFIG_ENV_VAR_OVERRIDE, os.getenv(FLYTECTL_CONFIG_ENV_VAR)
config_file = os.getenv(FLYTECTL_CONFIG_ENV_VAR_OVERRIDE, os.getenv(FLYTECTL_CONFIG_ENV_VAR))
if config_file:
paths.append(Path(config_file))
)

c = get_config_file(None)
assert (c is None) == all_path_not_exists(paths)
Expand Down

0 comments on commit d2aa9e0

Please sign in to comment.