mirror of
https://github.com/thegeeklab/corenetworks.git
synced 2024-11-24 10:00:39 +00:00
use assert_called instead of assert_called_once to support python 3.5
This commit is contained in:
parent
3d60d511d1
commit
e7784556d5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user