Skip to content

Commit

Permalink
removal of no longer needed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Perkins committed Nov 2, 2023
1 parent a38cf7d commit d506e53
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion darwin/future/core/types/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
InvalidQueryFilter,
InvalidQueryModifier,
MoreThanOneResultFound,
QueryNotCompletedError,
ResultsNotFound,
)
from darwin.future.meta.objects.base import MetaBase
Expand Down
5 changes: 0 additions & 5 deletions darwin/future/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ def __repr__(self) -> str:
return super().__repr__()


class QueryNotCompletedError(DarwinException):
def __str__(self) -> str:
return "This query has not been completely collected and thus it's length is ambigious, to force completion run `.collect_all()` or otherwise collect all results"


class ValidationError(DarwinException):
pass

Expand Down
2 changes: 0 additions & 2 deletions darwin/future/tests/meta/queries/test_team_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from darwin.future.core.client import ClientCore
from darwin.future.data_objects.page import Page
from darwin.future.exceptions import QueryNotCompletedError
from darwin.future.meta.objects.v7_id import V7ID
from darwin.future.meta.queries.item_id import ItemIDQuery
from darwin.future.tests.core.fixtures import *
Expand Down Expand Up @@ -186,7 +185,6 @@ def test_can_become_iterable(
ids_raw = [x.id for x in ids]
assert len(rsps.calls) == 1
assert ids_raw == list_of_uuids



def test_get_specific_index_collects_correct_page(
Expand Down

0 comments on commit d506e53

Please sign in to comment.