mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
testing: abstracting legacy_io fixture to lib for other pipeline tests
This commit is contained in:
parent
b361bcba2e
commit
a429352964
2 changed files with 16 additions and 8 deletions
13
tests/unit/openpype/pipeline/lib.py
Normal file
13
tests/unit/openpype/pipeline/lib.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import pytest
|
||||
from tests.lib.testing_classes import ModuleUnitTest
|
||||
from openpype.pipeline import legacy_io
|
||||
|
||||
|
||||
class TestPipeline(ModuleUnitTest):
|
||||
""" Testing Pipeline base class
|
||||
"""
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def legacy_io(self, dbcon):
|
||||
legacy_io.Session = dbcon.Session
|
||||
yield legacy_io.Session
|
||||
|
|
@ -17,11 +17,11 @@ import pytest
|
|||
import shutil
|
||||
import os
|
||||
|
||||
from tests.lib.testing_classes import ModuleUnitTest
|
||||
from openpype.pipeline import colorspace, legacy_io
|
||||
from tests.unit.openpype.pipeline.lib import TestPipeline
|
||||
from openpype.pipeline import colorspace
|
||||
|
||||
|
||||
class TestPipelineColorspace(ModuleUnitTest):
|
||||
class TestPipelineColorspace(TestPipeline):
|
||||
""" Testing Colorspace
|
||||
|
||||
Example:
|
||||
|
|
@ -37,11 +37,6 @@ 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue