Skip to content

Commit

Permalink
Update tests/workflows/xspectra/test_core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber authored Jan 30, 2023
1 parent 52424f2 commit f78e0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/workflows/xspectra/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

from aiida import engine, orm
from aiida.common import LinkType
from aiida.engine.utils import instantiate_process
from aiida.manage.manager import get_manager
from plumpy import ProcessState
import pytest


def instantiate_process(cls_or_builder, inputs=None):
"""Instantiate a process, from a ``Process`` class or ``ProcessBuilder`` instance."""
from aiida.engine.utils import instantiate_process as _instantiate_process
manager = get_manager()
runner = manager.get_runner()
return instantiate_process(runner, cls_or_builder **{inputs or {})
return _instantiate_process(runner, cls_or_builder **{inputs or {})


@pytest.fixture
Expand Down

0 comments on commit f78e0ee

Please sign in to comment.