mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 06:34:19 +01:00
Updates cli test to expect an exception instead of False
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import pytest
|
||||||
import responses
|
import responses
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
@@ -150,8 +151,8 @@ def test_load_key_file_data():
|
|||||||
os.remove("key_test_file")
|
os.remove("key_test_file")
|
||||||
|
|
||||||
# If file doesn't exist, function should fail.
|
# If file doesn't exist, function should fail.
|
||||||
appt_data = pisa_cli.load_key_file_data("nonexistent_file")
|
with pytest.raises(FileNotFoundError):
|
||||||
assert not appt_data
|
assert pisa_cli.load_key_file_data("nonexistent_file")
|
||||||
|
|
||||||
|
|
||||||
def test_save_signed_appointment(monkeypatch):
|
def test_save_signed_appointment(monkeypatch):
|
||||||
|
|||||||
Reference in New Issue
Block a user