Upgrade the declarative pipeline for cleaner interface (#51)
This commit is contained in:
committed by
GitHub
parent
aab982ddc4
commit
9035e25666
@@ -3,6 +3,8 @@ import sys
|
||||
|
||||
import pytest
|
||||
|
||||
from .conftest import skip_when_haystack_not_installed
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def clean_artifacts_for_telemetry():
|
||||
@@ -26,6 +28,7 @@ def clean_artifacts_for_telemetry():
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("clean_artifacts_for_telemetry")
|
||||
@skip_when_haystack_not_installed
|
||||
def test_disable_telemetry_import_haystack_first():
|
||||
"""Test that telemetry is disabled when kotaemon lib is initiated after"""
|
||||
import os
|
||||
@@ -42,6 +45,7 @@ def test_disable_telemetry_import_haystack_first():
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("clean_artifacts_for_telemetry")
|
||||
@skip_when_haystack_not_installed
|
||||
def test_disable_telemetry_import_haystack_after_kotaemon():
|
||||
"""Test that telemetry is disabled when kotaemon lib is initiated before"""
|
||||
import os
|
||||
|
Reference in New Issue
Block a user