Skip to content

Commit

Permalink
fix: remove unused export and extend mock interface
Browse files Browse the repository at this point in the history
  • Loading branch information
migueluzcategui committed Jul 17, 2023
1 parent 0b60785 commit 8298e31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/endpoints/test_cargo_movements_real.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import pytest
from datetime import datetime
import os

from tests.testcases import TestCaseUsingRealAPI
from tests.timer import Timer
Expand Down
10 changes: 10 additions & 0 deletions tests/mock_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
VESSELS_REFERENCE,
)
from vortexasdk.search_response import SearchResponse
from vortexasdk.utils import PAGINATION_STRATEGIES


def _read(example_file) -> List[Dict]:
Expand Down Expand Up @@ -49,3 +50,12 @@ def search(
self, resource: str, response_type=None, **data
) -> SearchResponse:
return {"data": MockVortexaClient._results[resource], "reference": {}}

def search_base(
self,
resource: str,
response_type=None,
pagination_strategy: PAGINATION_STRATEGIES = None,
**data,
) -> SearchResponse:
return {"data": MockVortexaClient._results[resource], "reference": {}}

0 comments on commit 8298e31

Please sign in to comment.