Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ActEV
diva_evaluation_cli
Commits
9f8e5a4d
Commit
9f8e5a4d
authored
Jan 27, 2020
by
Baptiste CHOCOT
Browse files
rename testfile and remove unused code
parent
e5f87fda
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_get_system.py
→
test/test_get_system
_git_sha
.py
View file @
9f8e5a4d
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment