(capsys)
| 49 | |
| 50 | |
| 51 | def get_variables(capsys): |
| 52 | path = os.path.dirname(os.path.abspath(__file__)) |
| 53 | file = os.path.abspath(os.path.join(path, "./getJupyterVariableList.py")) |
| 54 | if execute_script(file): |
| 55 | read_out = capsys.readouterr() |
| 56 | return json.loads(read_out.out) |
| 57 | else: |
| 58 | raise Exception("Getting variables failed.") |
| 59 | |
| 60 | |
| 61 | def find_variable_json(varList, varName): |