Skip to content

Commit

Permalink
refactor strange list comprehension to simple loops (#64)
Browse files Browse the repository at this point in the history
Co-authored-by: yang.lei@cerence.com <yang.lei@cerence.com>
  • Loading branch information
LeiYangGH and yang.lei@cerence.com committed May 16, 2023
1 parent bee0d00 commit 81c00d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pytest_metadata/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,9 @@ def pytest_configure(config):
config._metadata["Plugins"] = plugins

for provider in CONTINUOUS_INTEGRATION:
[
config._metadata.update({var: os.environ.get(var)})
for var in provider
if os.environ.get(var)
]
for var in provider:
if os.environ.get(var):
config._metadata.update({var: os.environ.get(var)})

if hasattr(config, "workeroutput"):
config.workeroutput["metadata"] = config._metadata
Expand Down

0 comments on commit 81c00d9

Please sign in to comment.