Skip to content

Commit

Permalink
⬆️ [#4269] Upgrade to patched django-camunda
Browse files Browse the repository at this point in the history
This has the correct input dependency resolution implementation.
  • Loading branch information
sergei-maertens committed May 8, 2024
1 parent 0fd8a35 commit baac689
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements/extensions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions src/openforms/dmn/contrib/camunda/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")

0 comments on commit baac689

Please sign in to comment.