Skip to content

Commit 3a670da

Browse files
authored
Merge pull request #102 from fintoc-com/master
Version 2.13.0 πŸŽ‰
2 parents 964e76e + a155401 commit 3a670da

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

β€Žfintoc/managers/v2/accounts_manager.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class AccountsManager(ManagerMixin):
99
"""Represents an accounts manager."""
1010

1111
resource = "account"
12-
methods = ["list", "get", "create"]
12+
methods = ["list", "get", "create", "update"]
1313

1414
def __init__(self, path, client):
1515
super().__init__(path, client)

β€Žfintoc/version.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Module to hold the version utilities."""
22

3-
version_info = (2, 12, 0)
3+
version_info = (2, 13, 0)
44
__version__ = ".".join([str(x) for x in version_info])

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fintoc"
3-
version = "2.12.0"
3+
version = "2.13.0"
44
description = "The official Python client for the Fintoc API."
55
authors = ["Daniel Leal <daniel@fintoc.com>", "Nebil Kawas <nebil@uc.cl>"]
66
maintainers = ["Daniel Leal <daniel@fintoc.com>"]

β€Žtests/test_integration.pyβ€Ž

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,17 @@ def test_v2_account_create(self):
561561
assert account.url == "v2/accounts"
562562
assert account.json.description == account_data["description"]
563563

564+
def test_v2_account_update(self):
565+
"""Test updating an account using v2 API."""
566+
account_id = "test_account_id"
567+
update_data = {"description": "Updated test account"}
568+
569+
account = self.fintoc.v2.accounts.update(account_id, **update_data)
570+
571+
assert account.method == "patch"
572+
assert account.url == f"v2/accounts/{account_id}"
573+
assert account.json.description == update_data["description"]
574+
564575
def test_v2_account_numbers_list(self):
565576
"""Test getting all account numbers using v2 API."""
566577
account_id = "test_account_id"

0 commit comments

Comments
Β (0)