Skip to content
Snippets Groups Projects
Commit bf23f507 authored by sandeepsajan0's avatar sandeepsajan0
Browse files

Update api tests for Invoice extended workflow

parent 3ac6c1f1
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,7 @@ class TestInvoiceDeliverableViewset(TestCase):
response = self.post_to_add(project.id, invoice.id, deliverable.id)
self.assertEqual(response.status_code, 201)
@override_settings(INVOICE_EXTENDED_WORKFLOW=True)
def test_finance2_can_add_deliverables(self):
user = Finance2Factory()
project = ProjectFactory()
......@@ -239,6 +240,7 @@ class TestInvoiceDeliverableViewset(TestCase):
response = self.delete_to_remove(project.id, invoice.id, invoice_deliverable.id)
self.assertEqual(response.status_code, 403)
@override_settings(INVOICE_EXTENDED_WORKFLOW=True)
def test_finance2_can_remove_deliverables(self):
user = Finance2Factory()
project = ProjectFactory()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment