Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
85a44e9f
Commit
85a44e9f
authored
5 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Test parse cli.
parent
846a3a87
No related branches found
No related tags found
2 merge requests
!115
V0.8.0 beta
,
!113
V0.8.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/parse.py
+1
-1
1 addition, 1 deletion
examples/parse.py
nomad/cli/__init__.py
+1
-0
1 addition, 0 deletions
nomad/cli/__init__.py
tests/test_cli.py
+8
-0
8 additions, 0 deletions
tests/test_cli.py
with
10 additions
and
1 deletion
examples/parse.py
+
1
−
1
View file @
85a44e9f
...
...
@@ -5,4 +5,4 @@ from nomad.cli.parse import parse
utils
.
configure_logging
()
parse
(
sys
.
argv
[
1
]
,
'
.
'
)
parse
(
sys
.
argv
[
1
])
This diff is collapsed.
Click to expand it.
nomad/cli/__init__.py
+
1
−
0
View file @
85a44e9f
...
...
@@ -38,6 +38,7 @@ lazy_import.lazy_module('nomad.metainfo')
lazy_import
.
lazy_module
(
'
nomad.processing
'
)
lazy_import
.
lazy_module
(
'
nomad.client
'
)
lazy_import
.
lazy_module
(
'
nomadcore
'
)
lazy_import
.
lazy_module
(
'
nomadcore.simple_parser
'
)
from
.
import
dev
,
parse
,
admin
,
client
# noqa
from
.cli
import
cli
# noqa
...
...
This diff is collapsed.
Click to expand it.
tests/test_cli.py
+
8
−
0
View file @
85a44e9f
...
...
@@ -29,6 +29,14 @@ from tests.app.test_app import BlueprintClient
# TODO there is much more to test
class
TestParse
:
def
test_parser
(
self
,
example_mainfile
):
_
,
mainfile_path
=
example_mainfile
result
=
click
.
testing
.
CliRunner
().
invoke
(
cli
,
[
'
parse
'
,
mainfile_path
],
catch_exceptions
=
False
)
assert
result
.
exit_code
==
0
@pytest.mark.usefixtures
(
'
reset_config
'
,
'
no_warn
'
,
'
mongo_infra
'
,
'
elastic_infra
'
,
'
raw_files_infra
'
)
class
TestAdmin
:
def
test_reset
(
self
,
reset_infra
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment