Remove environment variables from create_request_file.py - #529
Conversation
|
This changes a lot of the same files as so it will be much easier (fewer conflicts) to add in the |
…_request_filepy # Conflicts: # CMEW/app/configure_standardise/bin/configure_standardise.sh # CMEW/app/configure_standardise/bin/create_request_file.py # CMEW/app/configure_standardise/bin/test_create_request_file.py
| Path(__file__).parent.parent / "etc" / "request_defaults.yml" | ||
| ) | ||
| stream_config_path = Path(__file__).parent.parent / "etc" / "streams.yml" | ||
| monkeypatch.setattr(create_request_file, "list_streams", fake_list_streams) |
There was a problem hiding this comment.
Can / should we avoid monkeypatch here?
There was a problem hiding this comment.
Given what was done in #559, I expect to not have a test for the driver function (i.e. create_request). So happy to leave this for now 👍
|
The request file needs to be made after the variables file so I'm waiting until PR #530 is reviewed. |
…_request_filepy # Conflicts: # CMEW/app/configure_standardise/bin/command_line.py # CMEW/app/configure_standardise/bin/configure_standardise.sh # CMEW/app/configure_standardise/bin/configure_standardise_conftest.py # CMEW/app/configure_standardise/rose-app.conf
Emma Hogan (ehogan)
left a comment
There was a problem hiding this comment.
Thanks Naomi Parsons (@NParsonsMO)! 🥳
| Path(__file__).parent.parent / "etc" / "request_defaults.yml" | ||
| ) | ||
| stream_config_path = Path(__file__).parent.parent / "etc" / "streams.yml" | ||
| monkeypatch.setattr(create_request_file, "list_streams", fake_list_streams) |
There was a problem hiding this comment.
Given what was done in #559, I expect to not have a test for the driver function (i.e. create_request). So happy to leave this for now 👍
Co-authored-by: Emma Hogan <ehogan@users.noreply.github.com>
Emma Hogan (ehogan)
left a comment
There was a problem hiding this comment.
Thanks Naomi Parsons (@NParsonsMO) 🎉
I have confirmed that there are no environment variables, nor any occurrences of monkeypatch remaining (other than the one identified) in these files 🎉
CMEW runs successfully for me 🎉
Closes #523
PR creation checklist for the developer
<issue_number>above ☝️ has been replaced with the issue number.mainhas been selected as the base branch.<issue_number>_<short_description_of_feature>.good first issuelabel) have been added to the PR.Climate Model Evaluation Workflow (CMEW)project has been added to the PR.Definition of Done for the developer
docdirectory, including the Quick Start section; select one of the following):Copyright and IPR:
PR creation checklist for the reviewer
<issue_number>above ☝️ has been replaced with the issue number.mainhas been selected as the base branch.<issue_number>_<short_description_of_feature>.good first issuelabel) have been added to the PR.Climate Model Evaluation Workflow (CMEW)project has been added to the PR.Definition of Done for the reviewer
docdirectory, including the Quick Start section; select one of the following):Important
#<pull_request_number>: <pull_request_title>when writing the merge commit message for the pull request, so the pull request number is immediately visible on GitHub, regardless of the length of the pull request title.