From b5fddb955ce0cb1730105bbd5e1efdbd4cae8726 Mon Sep 17 00:00:00 2001 From: alexPatrie Date: Mon, 8 Jan 2024 15:34:44 -0500 Subject: [PATCH] updates to test files and init --- biosimulator_processes/__init__.py | 9 +++++---- biosimulator_processes/tests/test_copasi.py | 6 +----- pytest.ini | 5 +++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/biosimulator_processes/__init__.py b/biosimulator_processes/__init__.py index 1d3189824..2727ffb04 100644 --- a/biosimulator_processes/__init__.py +++ b/biosimulator_processes/__init__.py @@ -1,15 +1,16 @@ -from warnings import warn from process_bigraph import process_registry from biosimulator_processes.cobra_process import CobraProcess from biosimulator_processes.copasi_process import CopasiProcess -#from biosimulator_processes.tellurium_process import TelluriumProcess #, TelluriumStep +from biosimulator_processes.tellurium_process import TelluriumProcess # , TelluriumStep from biosimulator_processes.smoldyn_process import SmoldynProcess # register processes process_registry.register('cobra', CobraProcess) process_registry.register('copasi', CopasiProcess) -#process_registry.register('tellurium_process', TelluriumProcess) -# process_registry.register('tellurium_step', TelluriumStep) process_registry.register('smoldyn_process', SmoldynProcess) +process_registry.register('tellurium_process', TelluriumProcess) + +# TODO: Eventually integrate this Step implementation +# process_registry.register('tellurium_step', TelluriumStep) diff --git a/biosimulator_processes/tests/test_copasi.py b/biosimulator_processes/tests/test_copasi.py index 2b8a5468a..e286de7c2 100644 --- a/biosimulator_processes/tests/test_copasi.py +++ b/biosimulator_processes/tests/test_copasi.py @@ -1,8 +1,4 @@ -from process_bigraph import Composite, pf, process_registry -from biosimulator_processes.copasi_process import CopasiProcess - - -process_registry.register(CopasiProcess, 'copasi') +from process_bigraph import Composite, pf def test_process(): diff --git a/pytest.ini b/pytest.ini index f79a41cfa..067a2a3c5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,8 +1,9 @@ [pytest] -addopts = --ignore=setup.py +addopts = --ignore=setup.py -ra +# addopts = -ra --ignore=setup.py python_files = *.py python_functions = test_* #addopts = --doctest-modules --strict-markers -testpaths = core_processes/tests +testpaths = biosimulator_processes/tests markers = slow: indicates slow tests (deselect with '-m "not slow"')