Commit 9f8e5a4d authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

rename testfile and remove unused code

parent e5f87fda
......@@ -23,7 +23,7 @@ def _clean_tmp_folder():
class TestGetSystemGit(unittest.TestCase):
"""
Test the actev get-system CLI call, using valid and invalid parameters
Test the actev get-system git --sha CLI call, using valid and invalid parameters
"""
def setUp(self):
......@@ -31,24 +31,12 @@ class TestGetSystemGit(unittest.TestCase):
_clean_tmp_folder()
def test_git_subcommand(self):
# print("Testing get-system git subcommand.")
def _update_argv(args: list):
# Use this to modify CLI parameters
if isinstance(args, str):
args = [args]
sys.argv[1:] = ['get-system', 'git'] + args
# Cloning this repository, assuming you are authorized to pull it as you're testing it.
'''
TODO
-u: (in)correct url
-l: nothing, (in)correct relative/absolute paths
-U:
-p:
-s: (in)correct tag/SHA + try tag/branch confusion
'''
##################
# Checking --sha #
##################
......@@ -94,11 +82,6 @@ class TestGetSystemGit(unittest.TestCase):
self.fail('The system managed to checkout on invalid commit `abcdefgh`')
_clean_tmp_folder()
def test_archive_subcommand(self):
# TODO
# print("Testing get-system archive subcommand.")
pass
def tearDown(self):
# Clear archive and repository
shutil.rmtree('tmp')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment