From bf23f507b2882d32ea99762181c517f03dc71d68 Mon Sep 17 00:00:00 2001 From: sandeepsajan0 <sandeepsajan0@gmail.com> Date: Sat, 12 Nov 2022 15:22:37 +0530 Subject: [PATCH] Update api tests for Invoice extended workflow --- hypha/apply/api/v1/tests/test_views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypha/apply/api/v1/tests/test_views.py b/hypha/apply/api/v1/tests/test_views.py index cdb5e47ce..f319f164c 100644 --- a/hypha/apply/api/v1/tests/test_views.py +++ b/hypha/apply/api/v1/tests/test_views.py @@ -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() -- GitLab