From ec4ecf4a15941dbdf88b5787850eedb85c70296a Mon Sep 17 00:00:00 2001 From: Aidan Heerdegen Date: Fri, 6 Dec 2019 14:14:45 +1100 Subject: [PATCH] Fixed path tests to work on travis --- test/test_paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_paths.py b/test/test_paths.py index 199f62e3..51460ebb 100644 --- a/test/test_paths.py +++ b/test/test_paths.py @@ -82,6 +82,6 @@ def test_laboratory_basepath(): shortpath = path break - assert(Path(lab.basepath).parents[2] == Path(shortpath)) - assert(Path(lab.basepath).parts[2] == os.environ['PROJECT']) + assert(list(Path(lab.basepath).parents)[2] == Path(shortpath)) + assert(Path(lab.basepath).parts[-3] == os.environ['PROJECT']) assert(Path(lab.basepath).parts[-1] == 'lab')