Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Data Flow
Data Loading
osdu-cli
Commits
cb700a2b
Commit
cb700a2b
authored
Nov 10, 2021
by
Mark Hewitt
Browse files
Fix broken test case
parent
09862926
Pipeline
#76529
passed with stages
in 3 minutes and 51 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
cb700a2b
...
...
@@ -32,6 +32,7 @@ Change Log
------
- test against python 3.10 in addition to 3.8, 3.9
- crs commands
0.0.24
------
...
...
src/osducli/__init__.py
View file @
cb700a2b
...
...
@@ -12,4 +12,4 @@
""" OSDU command line environment"""
__VERSION__
=
"0.0.2
4
"
__VERSION__
=
"0.0.2
5
"
src/osducli/commands/crs/summary.py
View file @
cb700a2b
...
...
@@ -22,9 +22,9 @@ from osducli.config import CONFIG_CRS_CATALOG_URL
# click entry point
@
click
.
command
(
cls
=
CustomClickCommand
)
@
handle_cli_exceptions
@
command_with_output
()
@
command_with_output
(
"attributes.{Name:name,Description:description,LastModified:lastModified}"
)
def
_click_command
(
state
:
State
):
"""CRS Summary"""
"""CRS
catalog
Summary"""
return
crs_summary
(
state
)
...
...
@@ -35,5 +35,5 @@ def crs_summary(state: State):
state (State): Global state
"""
connection
=
CliOsduClient
(
state
.
config
)
json
=
connection
.
cli_get_returning_json
(
CONFIG_CRS_CATALOG_URL
,
"catalog
/attributes
"
)
json
=
connection
.
cli_get_returning_json
(
CONFIG_CRS_CATALOG_URL
,
"catalog"
)
return
json
tests/commands/crs/test_info.py
View file @
cb700a2b
...
...
@@ -43,7 +43,7 @@ class ServiceInfoTests(unittest.TestCase):
CRS_CATALOG_SWAGGER_PATH
,
CRS_CATALOG_DOCUMENTATION
,
)
self
.
assert
True
(
result
.
exit_code
,
0
)
self
.
assert
Equal
(
result
.
exit_code
,
0
)
if
__name__
==
"__main__"
:
...
...
tests/test_help_text.py
View file @
cb700a2b
...
...
@@ -93,7 +93,7 @@ class HelpTextTests(unittest.TestCase):
# make sure there is descriptive text in this line by checking
# that the line is longer than just the command.
self
.
assertGreater
(
len
(
line
.
replace
(
first_word_of_line
,
""
).
lstrip
()),
len
(
line
.
replace
(
first_word_of_line
,
""
,
1
).
lstrip
()),
len
(
first_word_of_line
),
msg
=
'Missing help text in "Commands" on line: '
+
line
,
)
...
...
@@ -379,6 +379,7 @@ class HelpTextTests(unittest.TestCase):
"osdu"
,
subgroups
=
(
"config"
,
"crs"
,
"dataload"
,
"entitlements"
,
"legal"
,
...
...
@@ -403,6 +404,16 @@ class HelpTextTests(unittest.TestCase):
),
)
self
.
validate_output
(
"osdu crs"
,
commands
=
(
"areas"
,
"info"
,
"list"
,
"summary"
,
),
)
self
.
validate_output
(
"osdu dataload"
,
commands
=
(
...
...
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