Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch unit tests by updating OTIO_PLUGIN_MANIFEST_PATH env var #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license = { file="LICENSE" }
readme = "README.md"
requires-python = ">=3.7"
dependencies = [
"opentimelineio >= 0.15.0"
"opentimelineio >= 0.17.0.dev1"
]

classifiers = [
Expand Down
4 changes: 4 additions & 0 deletions tests/test_cdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
SAMPLE_DATA_DIR = os.path.join(os.path.dirname(__file__), "sample_data")
CDL_EXAMPLE_PATH = os.path.join(SAMPLE_DATA_DIR, "cdl.edl")

os.environ['OTIO_PLUGIN_MANIFEST_PATH'] = os.pathsep.join(
["$OTIO_PLUGIN_MANIFEST_PATH", "../src/otio_cmx3600_adapter/plugin_manifest.json"]
)


class CDLAdapterTest(unittest.TestCase):
def test_cdl_read(self):
Expand Down
4 changes: 4 additions & 0 deletions tests/test_cmx_3600_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
from tempfile import TemporaryDirectory # noqa: F401
import tempfile

os.environ['OTIO_PLUGIN_MANIFEST_PATH'] = os.pathsep.join(
["$OTIO_PLUGIN_MANIFEST_PATH", "../src/otio_cmx3600_adapter/plugin_manifest.json"]
)

# We import the cmx_3600 module this way to make sure the EDLParseError defined
# in the module is properly caught. Importing the module and error directly
# doesn't get accepted as the same exception when asserting in the
Expand Down
Loading