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
Wellbore DDMS Data Loader
Commits
a4fd381e
Commit
a4fd381e
authored
May 13, 2022
by
Ritika Kaushal
Browse files
resolved indentation issues
parent
e041b42c
Pipeline
#108219
failed with stages
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/test_osdu_client.py
View file @
a4fd381e
...
@@ -136,7 +136,7 @@ class TestOsduClient:
...
@@ -136,7 +136,7 @@ class TestOsduClient:
mock_response
=
httpx
.
Response
(
500
)
mock_response
=
httpx
.
Response
(
500
)
respx_mock
.
post
(
f
"
{
base_url
}
/api/os-wellbore-ddms/ddms/v3/welllogs"
).
mock
(
return_value
=
mock_response
)
respx_mock
.
post
(
f
"
{
base_url
}
/api/os-wellbore-ddms/ddms/v3/welllogs"
).
mock
(
return_value
=
mock_response
)
client
=
OsduClient
(
self
.
mockConfig
,
self
.
_access_token
)
client
=
OsduClient
(
self
.
mockConfig
,
self
.
_access_token
)
# Act
# Act
with
pytest
.
raises
(
DataLoaderWebResponseError
)
as
ex
:
with
pytest
.
raises
(
DataLoaderWebResponseError
)
as
ex
:
client
.
post_welllog
(
record
)
client
.
post_welllog
(
record
)
...
@@ -243,7 +243,7 @@ class TestOsduClient:
...
@@ -243,7 +243,7 @@ class TestOsduClient:
mock_response
=
httpx
.
Response
(
500
)
mock_response
=
httpx
.
Response
(
500
)
respx_mock
.
get
(
url
).
mock
(
return_value
=
mock_response
)
respx_mock
.
get
(
url
).
mock
(
return_value
=
mock_response
)
client
=
OsduClient
(
self
.
mockConfig
,
self
.
_access_token
)
client
=
OsduClient
(
self
.
mockConfig
,
self
.
_access_token
)
# Act
# Act
with
pytest
.
raises
(
DataLoaderWebResponseError
)
as
ex
:
with
pytest
.
raises
(
DataLoaderWebResponseError
)
as
ex
:
...
...
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