def setUp(self): try: reload(data) reload(utils) except NameError: import importlib importlib.reload(data) importlib.reload(utils) utils.pd.read_csv = Mock(return_value=get_df())
def setUp(self): try: reload(data) reload(utils) except NameError: import importlib importlib.reload(data) importlib.reload(utils) utils.pd.read_csv = Mock(return_value=get_df()) data.Data3d.scale = Mock() data.Data3d.decompose = Mock(side_effect=lambda x: x) data.Data3d.revert = Mock(side_effect=lambda x: x)