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
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
1c01450d
Commit
1c01450d
authored
Jul 09, 2021
by
Luc Yriarte
Browse files
Fix imports in unit tests
parent
81af8aeb
Pipeline
#51051
passed with stages
in 11 minutes and 42 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
tests/unit/bulk_persistence/dataframe_render_test.py
View file @
1c01450d
...
...
@@ -4,7 +4,7 @@ from io import BytesIO
from
fastapi
import
HTTPException
from
app.model.model_chunking
import
GetDataParams
from
app.bulk_utils
import
DataFrameRender
,
get_df_from_request
from
app.
routers.
bulk_utils
import
DataFrameRender
,
get_df_from_request
import
pandas
as
pd
from
pandas.testing
import
assert_frame_equal
...
...
tests/unit/errors/error_handler_test.py
View file @
1c01450d
...
...
@@ -60,7 +60,7 @@ def client(nope_logger_fixture):
with
mock
.
patch
(
'app.routers.ddms_v2.logset_ddms_v2.get_storage_record_service'
,
mock_storage
):
with
mock
.
patch
(
'app.routers.ddms_v2.logset_ddms_v2.get_search_service'
,
mock_search
):
with
mock
.
patch
(
'app.routers.ddms_v2.log_ddms_v2.get_storage_record_service'
,
mock_storage_blob
):
with
mock
.
patch
(
'app.record_utils.get_storage_record_service'
,
mock_storage_blob
):
with
mock
.
patch
(
'app.
routers.
record_utils.get_storage_record_service'
,
mock_storage_blob
):
wdms_app
.
dependency_overrides
[
require_opendes_authorized_user
]
=
bypass_authorization
wdms_app
.
dependency_overrides
[
require_data_partition_id
]
=
set_default_partition
client
=
TestClient
(
wdms_app
)
...
...
tests/unit/routers/ddms_v2/log_ddms_v2_private_test.py
View file @
1c01450d
...
...
@@ -33,7 +33,7 @@ from app.auth.auth import require_opendes_authorized_user
from
app.middleware
import
require_data_partition_id
from
app.wdms_app
import
wdms_app
,
app_injector
from
app.utils
import
Context
from
app.record_utils
import
fetch_record
,
update_records
from
app.
routers.
record_utils
import
fetch_record
,
update_records
from
tests.unit.test_utils
import
create_mock_class
,
nope_logger_fixture
,
ctx_fixture
from
odes_storage.models
import
CreateUpdateRecordsResponse
,
Record
...
...
Write
Preview
Markdown
is supported
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