-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Overview When we patch the _read_settings_file function, we are calling to fixtures that exclude flags that have internal_only set to True. When you look at the _read_settings_file function there is no filtering out of flags set to internal_only. ```python def _read_settings_file(settings_file: "Path") -> SettingsData: """ Read the settings file, which is a json object with settings IDs as keys and boolean values. For each key, look up the `Settings` object with that key. If the key is one of the old IDs (kebab case), replace it with the new ID and rewrite the settings file :param settings_file: the path to the settings file :return: a dict with all new settings IDs as the keys, and boolean values (the values stored in the settings file, or `False` if the key was not found). Along with the version. """ # Read settings from persistent file data = _read_json_file(settings_file) settings, version = _migrate(data) settings = _ensure(settings) if data.get("_version") != version: _write_settings_file(settings, version, settings_file) return SettingsData(settings_map=settings, version=version) ``` Therefore, the patches for the OT-2 and Flex should be calling the fixtures that do not exclude the internal_only flag.
- Loading branch information
1 parent
c1c8929
commit e415a4a
Showing
3 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters