one.tests.util¶
Functions
Convert int ids to str ids for cache tables |
|
Touch all the files in the datasets table |
|
A stub function for iblutil.io.params.getfile. |
|
Create a temporary directory and copy cache fixtures over |
|
Copy REST cache fixtures to the .one parameter directory |
|
-
set_up_env
() → tempfile.TemporaryDirectory[source]¶ Create a temporary directory and copy cache fixtures over
- Returns
- Return type
TemporaryDirectory object
-
revisions_datasets_table
(collections='', 'alf/probe00', 'alf/probe01', revisions='', '2020-01-08', '2021-07-06', object='spikes', attributes='times', 'waveforems')[source]¶
-
get_file
(root: str, str_id: str) → str[source]¶ A stub function for iblutil.io.params.getfile. Allows the injection of a different param dir.
- Parameters
root (str, pathlib.Path) – The root directory of the new parameters
str_id (str) – The parameter string identifier
- Returns
- Return type
The parameter filename