Test that the pdf is attached
This commit is contained in:
@@ -134,6 +134,7 @@ def test_update_financial_verification_without_task_order(
|
||||
extended_financial_verification_data["clin_0001"]
|
||||
)
|
||||
assert request.task_order.source == TaskOrderSource.MANUAL
|
||||
assert request.task_order.pdf
|
||||
|
||||
|
||||
def test_update_financial_verification_with_task_order():
|
||||
|
@@ -36,3 +36,9 @@ def test_nonexistent_task_order_raises_with_client(monkeypatch):
|
||||
)
|
||||
with pytest.raises(NotFoundError):
|
||||
TaskOrders.get("some other fake numer")
|
||||
|
||||
def test_create_attachment(extended_financial_verification_data):
|
||||
task_order_data = extended_financial_verification_data.copy()
|
||||
task_order_data["pdf"] = task_order_data.pop("task_order")
|
||||
task_order = TaskOrders.get_or_create_task_order("abc123", task_order_data)
|
||||
assert task_order.pdf
|
||||
|
Reference in New Issue
Block a user