0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-11-28 05:00:35 +00:00

use assert_called instead of assert_called_once to support python 3.5

This commit is contained in:
Robert Kaussow 2020-04-12 16:37:47 +02:00
parent 3d60d511d1
commit e7784556d5

View File

@ -137,7 +137,7 @@ def test_add_record(requests_mock, client, mocker):
mocker.patch.object(client, "commit") mocker.patch.object(client, "commit")
client.auto_commit = True client.auto_commit = True
client.add_record(zone="example.com", params=record) 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): 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={ client.delete_record(zone="example.com", params={
"type": "A", "type": "A",
}) })
client.commit.assert_called_once() client.commit.assert_called()
def test_delete_record_invalid(requests_mock, client): def test_delete_record_invalid(requests_mock, client):