Skip to content

Commit

Permalink
fixup! [Traits] Add traits/specifications for common post workflows
Browse files Browse the repository at this point in the history
functional

Signed-off-by: Tom Cowland <tom@foundry.com>

funtion

Signed-off-by: Tom Cowland <tom@foundry.com>
  • Loading branch information
foundrytom committed Nov 24, 2023
1 parent 4b4fdb0 commit ca05b4b
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/python/openassetio_mediacreation/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ def test_importing_BearerToken_succeeds(self):
from openassetio_mediacreation.traits.auth import BearerTokenTrait


class Test_trait_imports_function:
def test_importing_namespace_succeeds(self):
from openassetio_mediacreation.traits import function

def test_importing_Config_succeeds(self):
from openassetio_mediacreation.traits.function import ConfigTrait

def test_importing_Manifest_succeeds(self):
from openassetio_mediacreation.traits.function import ManifestTrait

def test_importing_Work_succeeds(self):
from openassetio_mediacreation.traits.function import WorkTrait


class Test_trait_imports_usage:
def test_importing_namespace_succeeds(self):
from openassetio_mediacreation.traits import usage
Expand Down Expand Up @@ -291,3 +305,11 @@ def test_importing_Audio_succeeds(self):

def test_importing_SampledAudio_succeeds(self):
from openassetio_mediacreation.specifications.audio import SampledAudioSpecification


class Test_specification_imports_function:
def test_importing_namespace_succeeds(self):
from openassetio_mediacreation.specifications import function

def test_importing_workfile_succeeds(self):
from openassetio_mediacreation.specifications.function import WorkfileSpecification
45 changes: 45 additions & 0 deletions traits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,30 @@ traits:
- frame: An integer frame number for the current time.
- view: A string representing the current view.
function:
description: >
Traits that describe the usage or application of structured data.
members:
Config:
description: >
The entity data represents the configuration of a system,
application or tool.
usage:
- entity
Manifest:
description: >
The entity data represents a list or other manifest of
associated entities or information.
usage:
- entity
Work:
description: >
The entity data is the product of some manual task or process,
that often defines how to produce or derive other data.
Common examples are the documents opened, worked on and saved
by artists using DCC tools to create models/images/etc.
identity:
description: Traits that aid the identification of an entity.
members:
Expand Down Expand Up @@ -559,6 +583,27 @@ specifications:
name: Audio
- namespace: content
name: LocatableContent
function:
description: >
Specifications for entities that undertake specific functional roles.
members:
Workfile:
description: >
The entity is the product of some manual task or process,
that often defines how to produce or derive other data.
Common examples are the documents opened, worked on and saved
by artists using DCC tools to create models/images/etc.
usage:
- entity
traitSet:
- namespace: usage
name: Entity
- namespace: function
name: Work
- namespace: content
name: LocatableContent
threeDimensional:
description: >
Specifications for commonly encountered three-dimensional data types.
Expand Down

0 comments on commit ca05b4b

Please sign in to comment.