Skip to content

Commit 1c5fea4

Browse files
committed
fix: add tests; wire up logger plugin scaffolder
1 parent 36ddc91 commit 1c5fea4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

snakedeploy/scaffold_plugins/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ScaffoldSnakemakeSoftwareDeploymentPlugin,
1111
)
1212
from snakedeploy.scaffold_plugins.storage_plugins import ScaffoldSnakemakeStoragePlugin
13-
13+
from snakedeploy.scaffold_plugins.logger_plugins import ScaffoldSnakemakeLoggerPlugin
1414

1515
def scaffold_plugin(plugin_type: str):
1616
match plugin_type:
@@ -24,6 +24,8 @@ def scaffold_plugin(plugin_type: str):
2424
scaffold = ScaffoldSnakemakeStoragePlugin()
2525
case "scheduler":
2626
scaffold = ScaffoldSnakemakeSchedulerPlugin()
27+
case "logger":
28+
scaffold = ScaffoldSnakemakeLoggerPlugin()
2729
case _:
2830
raise UserError(f"Unknown plugin type: {plugin_type}")
2931
scaffold.handle()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from snakemake_interface_logger_plugins.tests import TestLogHandlerBase
2+
3+
4+
class TestConcreteRichPlugin(TestLogHandlerBase):
5+
"""Concrete test using the actual rich plugin to verify the abstract test class works."""
6+
7+
__test__ = True
8+
9+
def get_log_handler_cls(self):
10+
"""Return the rich log handler class."""
11+
...
12+
13+
def get_log_handler_settings(self):
14+
"""Return the rich settings with default values for testing."""
15+
...

0 commit comments

Comments
 (0)