testing: colorspace legacy_io fixture

This commit is contained in:
Jakub Jezek 2023-01-04 13:54:08 +01:00
parent 233808f1ee
commit 14b52ac625
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -18,7 +18,7 @@ import shutil
import os
from tests.lib.testing_classes import ModuleUnitTest
from openpype.pipeline import colorspace
from openpype.pipeline import colorspace, legacy_io
class TestPipelineColorspace(ModuleUnitTest):
@ -37,6 +37,11 @@ class TestPipelineColorspace(ModuleUnitTest):
)
]
@pytest.fixture(scope="module")
def legacy_io(self, dbcon):
legacy_io.Session = dbcon.Session
yield legacy_io.Session
@pytest.fixture(scope="module")
def config_path_project(
self,