Commit 7eede766 authored by Samuel GAIST's avatar Samuel GAIST

[test][utils] Add helper method to use pdb whith click

The click package alters stdin and stdout which makes it impossible
to debug. This helper method does the necessary to setup a working
pdb session.
parent 440618eb
Pipeline #27601 passed with stage
in 11 minutes and 16 seconds
......@@ -30,6 +30,8 @@ Helper functions to run tests
import os
import logging
import pdb
import sys
from beat.core.experiment import Experiment
from beat.core.hash import toPath
......@@ -38,6 +40,9 @@ from beat.core.hash import hashDataset
from . import prefix, tmp_prefix
def set_trace():
pdb.Pdb(stdin=sys.__stdin__, stdout=sys.__stdout__).set_trace()
def index_experiment_dbs(experiment_name):
"""
Index all databases for given experiment
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment