mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +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 json
|
||||
import os
|
||||
@@ -150,8 +151,8 @@ def test_load_key_file_data():
|
||||
os.remove("key_test_file")
|
||||
|
||||
# If file doesn't exist, function should fail.
|
||||
appt_data = pisa_cli.load_key_file_data("nonexistent_file")
|
||||
assert not appt_data
|
||||
with pytest.raises(FileNotFoundError):
|
||||
assert pisa_cli.load_key_file_data("nonexistent_file")
|
||||
|
||||
|
||||
def test_save_signed_appointment(monkeypatch):
|
||||
|
||||
Reference in New Issue
Block a user