Test that the pdf is attached

This commit is contained in:
Montana
2018-08-27 12:15:05 -04:00
parent cfe9b7589e
commit 6df897191c
3 changed files with 10 additions and 2 deletions

View File

@@ -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