Test that the pdf is attached
This commit is contained in:
@@ -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