Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_cpic_sim
Commits
3d42fff7
Commit
3d42fff7
authored
May 08, 2024
by
GZhao
Browse files
remove system argv test because of confilict with jenkins
parent
15bc5765
Pipeline
#4364
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_main.py
View file @
3d42fff7
...
@@ -8,19 +8,19 @@ cases = os.path.join(test_dir, 'testcases')
...
@@ -8,19 +8,19 @@ cases = os.path.join(test_dir, 'testcases')
output
=
os
.
path
.
join
(
test_dir
,
'test_output'
)
output
=
os
.
path
.
join
(
test_dir
,
'test_output'
)
config
[
'output'
]
=
output
config
[
'output'
]
=
output
from
unittest.mock
import
patch
from
unittest.mock
import
patch
os
.
mkdir
(
output
)
a
=
[]
a
=
[]
import
io
import
io
import
shutil
import
shutil
def
clear_output
():
def
clear_output
():
shutil
.
rmtree
(
output
)
if
os
.
path
.
exists
(
output
)
shutil
.
rmtree
(
output
)
os
.
mkdir
(
output
)
os
.
mkdir
(
output
)
class
TestMain
(
unittest
.
TestCase
):
class
TestMain
(
unittest
.
TestCase
):
def
test_help
(
self
):
#
def test_help(self):
main
(
argv
=
None
)
#
main(argv = None)
def
test_quick_run_cmdline
(
self
):
def
test_quick_run_cmdline
(
self
):
clear_output
()
clear_output
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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