Skip to content

Make yaml_loader more generic#127

Merged
camilamaia merged 1 commit intomultiple-specfrom
yaml-to-config
May 5, 2020
Merged

Make yaml_loader more generic#127
camilamaia merged 1 commit intomultiple-specfrom
yaml-to-config

Conversation

@camilamaia
Copy link
Copy Markdown
Member

Description

Make yaml_loader more generic - config_loader, because we can also have config files as JSON.

Because we can also have config files as JSON
@camilamaia camilamaia added the Refactor Refactors the current code label May 4, 2020
@camilamaia camilamaia self-assigned this May 4, 2020
Comment thread scanapi/settings.py
return DEFAULT_SETTINGS

user_config = load_yaml(SETTINGS_FILE)
user_config = load_config_file(SETTINGS_FILE)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@astenstrasser we use the load_config_file here too. And not only for the API spec as I said before.

Copy link
Copy Markdown
Member

@astenstrasser astenstrasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@camilamaia camilamaia requested a review from winstonf88 May 4, 2020 23:01
@camilamaia camilamaia merged commit 4111517 into multiple-spec May 5, 2020
@camilamaia camilamaia deleted the yaml-to-config branch May 5, 2020 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactors the current code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants