mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix asserts
This commit is contained in:
parent
cf1d4099dd
commit
7d8a9dd19b
1 changed files with 3 additions and 3 deletions
|
@ -73,11 +73,11 @@ def test_checks_exists():
|
|||
|
||||
def test_checks_create(request_mock):
|
||||
pytest.raises(CommandExecutionError, uptime.create, "http://example.org")
|
||||
assert 4321 == uptime.create("http://example.com")
|
||||
assert ("http://localhost:5000/api/checks",) == request_mock.args
|
||||
assert uptime.create("http://example.com") == 4321
|
||||
assert request_mock.args == ("http://localhost:5000/api/checks",)
|
||||
|
||||
|
||||
def test_checks_delete(request_mock):
|
||||
pytest.raises(CommandExecutionError, uptime.delete, "http://example.com")
|
||||
assert uptime.delete("http://example.org") is True
|
||||
assert ("http://localhost:5000/api/checks/1234",) == request_mock.args
|
||||
assert request_mock.args == ("http://localhost:5000/api/checks/1234",)
|
||||
|
|
Loading…
Add table
Reference in a new issue