Skip to content

Commit

Permalink
Rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cachitas committed Mar 31, 2024
1 parent d059495 commit c2efa93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/stringdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def request(
response.raise_for_status()
return response.json()

def get_string_ids(
def map_identifiers(
self,
identifiers: List[str],
species: int,
Expand All @@ -48,7 +48,7 @@ def get_string_ids(
}
return self.request("get_string_ids", params=params)

def get_interaction_partners(
def interaction_partners(
self,
identifiers: List[str],
species: int,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_map_identifiers(httpx_mock):
)

with stringdb.Client() as client:
client.get_string_ids(["some_identifier"], 7227)
client.map_identifiers(["some_identifier"], 7227)


def test_interaction_partners(httpx_mock):
Expand All @@ -70,4 +70,4 @@ def test_interaction_partners(httpx_mock):
)

with stringdb.Client() as client:
client.get_interaction_partners(["id1", "id2"], 7227)
client.interaction_partners(["id1", "id2"], 7227)

0 comments on commit c2efa93

Please sign in to comment.