Skip to content

Commit

Permalink
test(binding-constraint): correct test_command_factory unit test to…
Browse files Browse the repository at this point in the history
… ignore abstract commands
  • Loading branch information
laurent-laporte-pro committed Oct 11, 2023
1 parent 9cfa9f1 commit 789c2ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/variantstudy/test_command_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def setup_class(self):
f".{name}",
package="antarest.study.storage.variantstudy.model.command",
)
self.command_class_set = {command.__name__ for command in ICommand.__subclasses__()}
abstract_commands = {"AbstractBindingConstraintCommand"}
self.command_class_set = {
cmd.__name__ for cmd in ICommand.__subclasses__() if cmd.__name__ not in abstract_commands
}

# noinspection SpellCheckingInspection
@pytest.mark.parametrize(
Expand Down

0 comments on commit 789c2ad

Please sign in to comment.