From b66b7605b1aae19b097a3115071f0d1b9347fbe8 Mon Sep 17 00:00:00 2001 From: dave <dave@dtu.dk> Date: Fri, 4 Nov 2016 14:31:15 +0100 Subject: [PATCH] [WIP] prepost.dlcdefs: fix path in test data --- wetb/prepost/dlcdefs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wetb/prepost/dlcdefs.py b/wetb/prepost/dlcdefs.py index 278e9b5..664897c 100644 --- a/wetb/prepost/dlcdefs.py +++ b/wetb/prepost/dlcdefs.py @@ -422,14 +422,14 @@ class Tests(unittest.TestCase): """ def setUp(self): - self.fpath = 'data/DLCs' + self.fpath = os.path.join(os.path.dirname(__file__), 'data/DLCs') def test_read_tag_exchange_file(self): df_list = misc.read_excel_files(self.fpath, fext='xlsx', pignore=None, sheet=0, pinclude=None) - df = df_list[list(df_list.keys())[0]] +# df = df_list[list(df_list.keys())[0]] # df.fillna('', inplace=True) # df.replace(';', False, inplace=True) @@ -440,4 +440,3 @@ class Tests(unittest.TestCase): if __name__ == '__main__': unittest.main() - -- GitLab