From cc3ead7111d4a2bb79d26736188f07acfb0d9eb0 Mon Sep 17 00:00:00 2001 From: Chandrasekhar Ramakrishnan <chandrasekhar.ramakrishnan@id.ethz.ch> Date: Thu, 2 Feb 2017 15:39:43 +0100 Subject: [PATCH] SSDM-4670: More comprehensive test. --- src/python/OBis/obis/dm/data_mgmt_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/python/OBis/obis/dm/data_mgmt_test.py b/src/python/OBis/obis/dm/data_mgmt_test.py index 17e317ef2af..1240523115c 100644 --- a/src/python/OBis/obis/dm/data_mgmt_test.py +++ b/src/python/OBis/obis/dm/data_mgmt_test.py @@ -31,5 +31,13 @@ def test_locate_command(): def test_normal_use_case(shared_dm, tmpdir): + # The folder should not be a git repo at first + result = data_mgmt.run_shell(['git', '-C', str(tmpdir), 'status', ]) + assert result.returncode == 128 + result = shared_dm.init_data(str(tmpdir)) assert result.returncode == 0 + + # The folder should be a git repo now + result = data_mgmt.run_shell(['git', '-C', str(tmpdir), 'status', str(tmpdir)]) + assert result.returncode == 0 -- GitLab