From baac689865f6bbd8b45be6124af441ccdf48ef66 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Wed, 8 May 2024 17:32:51 +0200 Subject: [PATCH] :arrow_up: [#4269] Upgrade to patched django-camunda This has the correct input dependency resolution implementation. --- requirements/base.txt | 2 +- requirements/ci.txt | 2 +- requirements/dev.txt | 2 +- requirements/extensions.txt | 2 +- .../dmn/contrib/camunda/tests/test_plugin.py | 24 +++++++++---------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index 3c83f17d92..72c838b07d 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -146,7 +146,7 @@ django-autoslug==1.9.9 # via -r requirements/base.in django-axes[ipware]==6.4.0 # via -r requirements/base.in -django-camunda==0.14.0 +django-camunda==0.15.0 # via -r requirements/base.in django-capture-tag==1.0 # via -r requirements/base.in diff --git a/requirements/ci.txt b/requirements/ci.txt index 6ca34bdf9f..d78a765c99 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -235,7 +235,7 @@ django-axes[ipware]==6.4.0 # -c requirements/base.txt # -r requirements/base.txt # django-axes -django-camunda==0.14.0 +django-camunda==0.15.0 # via # -c requirements/base.txt # -r requirements/base.txt diff --git a/requirements/dev.txt b/requirements/dev.txt index c5422130d8..b963d07310 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -259,7 +259,7 @@ django-axes[ipware]==6.4.0 # -c requirements/ci.txt # -r requirements/ci.txt # django-axes -django-camunda==0.14.0 +django-camunda==0.15.0 # via # -c requirements/ci.txt # -r requirements/ci.txt diff --git a/requirements/extensions.txt b/requirements/extensions.txt index 634690d1ae..e98cb33c73 100644 --- a/requirements/extensions.txt +++ b/requirements/extensions.txt @@ -201,7 +201,7 @@ django-axes[ipware]==6.4.0 # -c requirements/base.in # -r requirements/base.txt # django-axes -django-camunda==0.14.0 +django-camunda==0.15.0 # via # -c requirements/base.in # -r requirements/base.txt diff --git a/src/openforms/dmn/contrib/camunda/tests/test_plugin.py b/src/openforms/dmn/contrib/camunda/tests/test_plugin.py index f056f133d7..182c72857f 100644 --- a/src/openforms/dmn/contrib/camunda/tests/test_plugin.py +++ b/src/openforms/dmn/contrib/camunda/tests/test_plugin.py @@ -160,14 +160,14 @@ def test_get_inputs_outputs(self): outputs = params.outputs self.assertEqual(len(inputs), 2) - self.assertEqual(inputs[0]["label"], "Invoice Amount") - self.assertEqual(inputs[0]["expression"], "amount") - self.assertEqual(inputs[1]["label"], "Invoice Category") - self.assertEqual(inputs[1]["expression"], "invoiceCategory") + self.assertEqual(inputs[0].label, "Invoice Amount") + self.assertEqual(inputs[0].expression, "amount") + self.assertEqual(inputs[1].label, "Invoice Category") + self.assertEqual(inputs[1].expression, "invoiceCategory") self.assertEqual(len(outputs), 1) - self.assertEqual(outputs[0]["label"], "Classification") - self.assertEqual(outputs[0]["name"], "invoiceClassification") + self.assertEqual(outputs[0].label, "Classification") + self.assertEqual(outputs[0].name, "invoiceClassification") def test_get_inputs_outputs_table_with_dependency(self): # This decision ID depends on the invoiceClassification table @@ -179,11 +179,11 @@ def test_get_inputs_outputs_table_with_dependency(self): outputs = params.outputs self.assertEqual(len(inputs), 2) - self.assertEqual(inputs[0]["label"], "Invoice Amount") - self.assertEqual(inputs[0]["expression"], "amount") - self.assertEqual(inputs[1]["label"], "Invoice Category") - self.assertEqual(inputs[1]["expression"], "invoiceCategory") + self.assertEqual(inputs[0].label, "Invoice Amount") + self.assertEqual(inputs[0].expression, "amount") + self.assertEqual(inputs[1].label, "Invoice Category") + self.assertEqual(inputs[1].expression, "invoiceCategory") self.assertEqual(len(outputs), 1) - self.assertEqual(outputs[0]["label"], "Approver Group") - self.assertEqual(outputs[0]["name"], "result") + self.assertEqual(outputs[0].label, "Approver Group") + self.assertEqual(outputs[0].name, "result")