From c941faf400021f19b0ce781cfb8ecf880440e9f3 Mon Sep 17 00:00:00 2001 From: Yu Chin Fabian Lim Date: Wed, 15 May 2024 05:14:28 +0000 Subject: [PATCH] activate test and minor fix Signed-off-by: Yu Chin Fabian Lim --- .github/workflows/format.yml | 4 ++++ plugins/framework/tests/test_framework.py | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 3c4bdc0c..7412adbe 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -47,3 +47,7 @@ jobs: run: | cd plugins/${{ matrix.plugin_name }} tox -e fmt + - name: Run pytest + run: | + cd plugins/${{ matrix.plugin_name }} + tox -e py diff --git a/plugins/framework/tests/test_framework.py b/plugins/framework/tests/test_framework.py index de7abd41..b59ff62f 100644 --- a/plugins/framework/tests/test_framework.py +++ b/plugins/framework/tests/test_framework.py @@ -272,14 +272,16 @@ def test_plugin_registration_order(): # build a set of hooks that register the activation order def hook_builder(act_order=None): + + if act_order is None: + act_order = [] + def _hook( self, model, train_args, modifiable_args, ): - if act_order is None: - act_order = [] act_order.append(str(self.__class__)) return model, modifiable_args