Skip to content

Commit

Permalink
fix: check for None as return value for dynaconf settings
Browse files Browse the repository at this point in the history
Fixes commit 74e6a72

Signed-off-by: Pino Toscano <[email protected]>
  • Loading branch information
ptoscano committed Feb 9, 2024
1 parent 74e6a72 commit 5889407
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytest_client_tools/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ def insights_client(save_insights_client_files, test_config):
insights_client = InsightsClient()
save_config = False
with contextlib.suppress(KeyError):
insights_client.config.legacy_upload = test_config.get("insights.legacy_upload")
legacy_upload = test_config.get("insights.legacy_upload")
if legacy_upload is not None:
insights_client.config.legacy_upload = legacy_upload
save_config = True
if save_config:
insights_client.config.save()
Expand Down

0 comments on commit 5889407

Please sign in to comment.