Skip to content

Commit

Permalink
DEP: switch from dtool_lookup_server to dservercore
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Jun 13, 2024
1 parent 74e25f5 commit d8ab799
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ CHANGELOG
This project uses `semantic versioning <http://semver.org/>`_.
This change log uses principles from `keep a changelog <http://keepachangelog.com/>`_.

[unreleased]

Changed
^^^^^^^

- Changed dependency from ``dtool_lookup_server`` to ``dservercore``.

[0.3.0]
-------

Expand Down
4 changes: 2 additions & 2 deletions dserver_retrieve_plugin_mongo/utils_retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from pymongo import MongoClient

from dtool_lookup_server import RetrieveABC, ValidationError, UnknownURIError
from dservercore import RetrieveABC, ValidationError, UnknownURIError

from dtool_lookup_server.date_utils import (
from dservercore.date_utils import (
extract_created_at_as_datetime,
extract_frozen_at_as_datetime,
)
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def snowwhite_token():
def tmp_app_with_users(request):
"""Provide app with users"""
from flask import current_app
from dtool_lookup_server import create_app, sql_db
from dtool_lookup_server.utils import (
from dservercore import create_app, sql_db
from dservercore.utils import (
register_users,
register_base_uri,
register_permissions,
Expand Down
8 changes: 4 additions & 4 deletions tests/test_utils_retrieve_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from dtoolcore import DataSetCreator, DataSet

from dtool_lookup_server.utils import generate_dataset_info
from dservercore.utils import generate_dataset_info

# This tested in this module.
from dserver_retrieve_plugin_mongo.utils_retrieve import MongoRetrieve
Expand Down Expand Up @@ -88,13 +88,13 @@ class _MockApp(object):
##############################################################################

def test_is_subclass_of_abc():
from dtool_lookup_server import RetrieveABC
from dservercore import RetrieveABC
assert issubclass(MongoRetrieve, RetrieveABC)


def test_functional(tmp_mongo_db): # NOQA

from dtool_lookup_server import UnknownURIError
from dservercore import UnknownURIError

ds_info = create_dataset_info(
base_uri="s3://store",
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_functional(tmp_mongo_db): # NOQA

def test_register_raises_when_metadata_too_large(tmp_mongo_db): # NOQA

from dtool_lookup_server import ValidationError
from dservercore import ValidationError

readme_lines = ["---"]
for i in range(100000):
Expand Down

0 comments on commit d8ab799

Please sign in to comment.