from conductor.hooks.metrics import ConfiguredMetricsHook
from tests.utils import create_test_project


def test_metrics():
    project = create_test_project()

    hookgen = ConfiguredMetricsHook(project.project_resources)

    test_metrics_hook = hookgen.generate_hook()

    assert test_metrics_hook.default_namespace == "test-project"
