From e7784556d51b052cb13b9fe575491fbca39bbae4 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 Apr 2020 16:37:47 +0200 Subject: [PATCH] use assert_called instead of assert_called_once to support python 3.5 --- corenetworks/test/unit/test_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corenetworks/test/unit/test_client.py b/corenetworks/test/unit/test_client.py index 5519f65..e6725e5 100644 --- a/corenetworks/test/unit/test_client.py +++ b/corenetworks/test/unit/test_client.py @@ -137,7 +137,7 @@ def test_add_record(requests_mock, client, mocker): mocker.patch.object(client, "commit") client.auto_commit = True client.add_record(zone="example.com", params=record) - client.commit.assert_called_once() + client.commit.assert_called() def test_delete_record(requests_mock, client, mocker): @@ -161,7 +161,7 @@ def test_delete_record(requests_mock, client, mocker): client.delete_record(zone="example.com", params={ "type": "A", }) - client.commit.assert_called_once() + client.commit.assert_called() def test_delete_record_invalid(requests_mock, client):