From 29023594965370057b69a9f65f0d7df343f29d05 Mon Sep 17 00:00:00 2001
From: florian <f.spreckelsen@inidscale.com>
Date: Wed, 18 May 2022 10:15:20 +0200
Subject: [PATCH] FIX: Correct paths in cfood and tests

---
 integrationtests/test-profile/profile.yml                       | 2 +-
 .../test_data/extroot/use_case_simple_presentation/cfood.yml    | 2 +-
 integrationtests/test_use_case_simple_presentation.py           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/integrationtests/test-profile/profile.yml b/integrationtests/test-profile/profile.yml
index 25580e3b..f830a2fb 100644
--- a/integrationtests/test-profile/profile.yml
+++ b/integrationtests/test-profile/profile.yml
@@ -22,7 +22,7 @@ default:
     # list of `NAME: PATH` pairs or a single path.  
     extroot:
     #  "": "paths/extroot"
-      "use_case_simple_presentation": "../test_data/extroot/use_case_simple_presentation"
+      "": "../test_data/extroot/"
     #
     #  "base": "/path/to/base/dir"
     #  "other": "/path/to/other"
diff --git a/integrationtests/test_data/extroot/use_case_simple_presentation/cfood.yml b/integrationtests/test_data/extroot/use_case_simple_presentation/cfood.yml
index 9cc1bc29..0b17073a 100644
--- a/integrationtests/test_data/extroot/use_case_simple_presentation/cfood.yml
+++ b/integrationtests/test_data/extroot/use_case_simple_presentation/cfood.yml
@@ -10,7 +10,7 @@ Converters: {}
 
 extroot:
   type: Directory
-  match: extroot
+  match: use_case_simple_presentation
   subtree:
     ExperimentalData:  # name of the converter
       type: Directory
diff --git a/integrationtests/test_use_case_simple_presentation.py b/integrationtests/test_use_case_simple_presentation.py
index 443a41e7..ba8009fc 100644
--- a/integrationtests/test_use_case_simple_presentation.py
+++ b/integrationtests/test_use_case_simple_presentation.py
@@ -78,7 +78,7 @@ def test_complete_crawler(
                  os.path.join(DATADIR, "provenance.yml"),
                  False,
                  True,
-                 "/extroot")
+                 "/use_case_simple_presentation")
 
     res = db.execute_query("FIND Record Experiment")
     assert len(res) == 1
-- 
GitLab