Skip to content

Commit

Permalink
feat: remove Model.category (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
mblottiere authored Sep 21, 2022
1 parent b91daa9 commit 033f139
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_execution_compute_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,8 @@ def test_compute_plan_aggregate_composite_traintuples( # noqa: C901
# Check that permissions were correctly set
for task in composite_traintuples:
task = clients[0].get_composite_traintuple(task.key)
trunks = [model for model in task.composite.models if model.category == models.ModelType.simple]
for trunk in trunks:
assert len(trunk.permissions.process.authorized_ids) == len(clients)
trunk = task.outputs[OutputIdentifiers.shared].value
assert len(trunk.permissions.process.authorized_ids) == len(clients)


def test_compute_plan_circular_dependency_failure(factory, client, default_dataset):
Expand Down

0 comments on commit 033f139

Please sign in to comment.