-
Notifications
You must be signed in to change notification settings - Fork 123
using the mss_dir in tests with verification #2983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
This needs first the merge stable to develop |
6c284f7 to
0a502ee
Compare
0a502ee to
596c3a4
Compare
| # REGEX = re.compile(r'(\/.*)|([A-Z]:\\.*)') | ||
| # (mss) | ||
| REGEX = re.compile(r'(~\/.*)|(\/.*)|([A-Z]:\\.*)') | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this change the used value gets ignored and the default is then used
| # in conftest we set always the mss_dir in the config file | ||
| # in fixtures we set the mss_dir in the config file | ||
| mss_dir = config_loader(dataset="mss_dir") | ||
| assert "~" not in mss_dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
safety check, that the value was changed
|
|
||
| @pytest.fixture | ||
| def msui_configs(tmp_path): | ||
| os.environ['MSUI_SETTINGS'] = os.path.join(tmp_path, "msui_settings.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msui imports from here
https://github.com/Open-MSS/MSS/blob/develop/mslib/msui/constants.py#L43
The environment variable adds (un?)necessary complexity and could be overlooked.
Purpose of PR?:
Fixes #2958