Merge pull request #575 from dod-ccpo/fix-empty-estimate

Handle submitting funding form without csp estimate
This commit is contained in:
patricksmithdds
2019-01-24 09:43:44 -05:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -59,6 +59,13 @@ class TestCSPEstimate:
with pytest.raises(TypeError):
to.csp_estimate = "invalid"
def test_setting_estimate_with_empty_value(self):
to = TaskOrder()
assert to.csp_estimate is None
to.csp_estimate = ""
assert to.csp_estimate is None
def test_removing_estimate(self):
attachment = Attachment(filename="sample.pdf", object_name="sample")
to = TaskOrder(csp_estimate=attachment)