From 8ee73d2fee002c7f15bb08e089234ce40c9abbad Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Fri, 19 Nov 2021 12:57:15 -0500 Subject: [PATCH] change import from hydroshare_jupyter_sync to hydroshare_on_jupyter in unit tests --- tests/test_aggregate_fs_map.py | 2 +- tests/test_fs_resource_map.py | 2 +- tests/test_oauth_json_model.py | 2 +- tests/test_pathlib_utils.py | 2 +- tests/test_server.py | 8 ++++---- tests/test_session_struct.py | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_aggregate_fs_map.py b/tests/test_aggregate_fs_map.py index 869cf58c..ae1ac2e1 100644 --- a/tests/test_aggregate_fs_map.py +++ b/tests/test_aggregate_fs_map.py @@ -4,7 +4,7 @@ from pathlib import Path from pydantic import BaseSettings, Field -from hydroshare_jupyter_sync.lib.filesystem.aggregate_fs_map import AggregateFSMap +from hydroshare_on_jupyter.lib.filesystem.aggregate_fs_map import AggregateFSMap def get_env_file_path() -> Path: diff --git a/tests/test_fs_resource_map.py b/tests/test_fs_resource_map.py index 4f2985e9..5f1a210c 100644 --- a/tests/test_fs_resource_map.py +++ b/tests/test_fs_resource_map.py @@ -6,7 +6,7 @@ import pytest from typing import Tuple, NewType -from hydroshare_jupyter_sync.lib.filesystem.fs_resource_map import LocalFSResourceMap +from hydroshare_on_jupyter.lib.filesystem.fs_resource_map import LocalFSResourceMap # type declarations ResourcePath = NewType("ResourcePath", Path) diff --git a/tests/test_oauth_json_model.py b/tests/test_oauth_json_model.py index 5e65778a..b5a7bbee 100644 --- a/tests/test_oauth_json_model.py +++ b/tests/test_oauth_json_model.py @@ -1,5 +1,5 @@ import pytest -from hydroshare_jupyter_sync.models.oauth import OAuthFile +from hydroshare_on_jupyter.models.oauth import OAuthFile @pytest.fixture diff --git a/tests/test_pathlib_utils.py b/tests/test_pathlib_utils.py index 656c79ee..002ce10a 100644 --- a/tests/test_pathlib_utils.py +++ b/tests/test_pathlib_utils.py @@ -1,7 +1,7 @@ import pytest import os -from hydroshare_jupyter_sync.utilities import pathlib_utils +from hydroshare_on_jupyter.utilities import pathlib_utils TEST_EXPAND_AND_RESOLVE_CASES = [ ("~/test", "/test_user/test", "/test_user"), diff --git a/tests/test_server.py b/tests/test_server.py index 01cf54c5..e93ccff5 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -1,12 +1,12 @@ from tornado.httpclient import HTTPRequest, HTTPResponse from tornado.httputil import HTTPHeaders from hsclient import HydroShare -from hydroshare_jupyter_sync.__main__ import get_test_app -from hydroshare_jupyter_sync.hydroshare_resource_cache import ( +from hydroshare_on_jupyter.__main__ import get_test_app +from hydroshare_on_jupyter.hydroshare_resource_cache import ( HydroShareWithResourceCache, ) -from hydroshare_jupyter_sync.server import LocalResourceEntityHandler -from hydroshare_jupyter_sync.session import _SessionSyncSingleton +from hydroshare_on_jupyter.server import LocalResourceEntityHandler +from hydroshare_on_jupyter.session import _SessionSyncSingleton import json import pytest from dataclasses import dataclass diff --git a/tests/test_session_struct.py b/tests/test_session_struct.py index d40aa236..d2b896fd 100644 --- a/tests/test_session_struct.py +++ b/tests/test_session_struct.py @@ -1,5 +1,5 @@ import pytest -from hydroshare_jupyter_sync.session_struct import SessionStruct +from hydroshare_on_jupyter.session_struct import SessionStruct @pytest.fixture