Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Feb 15, 2025
1 parent fc381b0 commit 861e0f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rez/data/tests/extensions/baz/baz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def command(opts, parser=None, extra_arg_groups=None):
class BazCommand(Command):
@classmethod
def name(cls):
return "baz"
return "baz_cmd"


def register_plugin():
Expand Down
4 changes: 2 additions & 2 deletions src/rez/tests/test_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_load_plugin_from_entry_points(self):
"""Test loading rez plugin from setuptools entry points"""
with restore_sys_path():
sys.path.append(self.data_path("extensions", "baz"))
baz_cls = plugin_manager.get_plugin_class("command", "baz")
self.assertEqual(baz_cls.name(), "baz")
baz_cls = plugin_manager.get_plugin_class("command", "baz_cmd")
self.assertEqual(baz_cls.name(), "baz_cmd")

def test_plugin_override_1(self):
"""Test plugin from plugin_path can override the default"""
Expand Down

0 comments on commit 861e0f1

Please sign in to comment.