refactor: make the function call more flexible

5 jobs for feat-rxn-matching in 3 minutes and 36 seconds
Status Job ID Name Coverage
  Test
failed #375228914
test36

00:02:55

failed #375228915
test37

00:03:35

 
  External
failed continuous-integration/appveyor/branch

failed continuous-integration/appveyor/merge-request

failed continuous-integration/appveyor/merge-request

 
Name Stage Failure
failed
test37 Test
TOTAL                                              907    628    257      0    23.97%
Coverage XML written to file coverage.xml

!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=================== 2 warnings, 1 error in 65.90s (0:01:05) ====================
ERROR: InvocationError for command /builds/elad.noor/equilibrator-api/.tox/py37/bin/pytest --cov=equilibrator_api --cov-report=xml --cov-report=term tests (exited with code 2)
___________________________________ summary ____________________________________
ERROR: py37: commands failed
ERROR: Job failed: exit code 1
failed
test36 Test
flake8 installed: attrs==19.3.0,entrypoints==0.3,flake8==3.7.9,flake8-bugbear==19.8.0,flake8-docstrings==1.5.0,mccabe==0.6.1,pycodestyle==2.5.0,pydocstyle==5.0.1,pyflakes==2.1.1,snowballstemmer==2.0.0
flake8 run-test-pre: PYTHONHASHSEED='251842737'
flake8 run-test: commands[0] | flake8 /builds/elad.noor/equilibrator-api/src/equilibrator_api /builds/elad.noor/equilibrator-api/tests
___________________________________ summary ____________________________________
ERROR: isort: commands failed
ERROR: black: commands failed
safety: commands succeeded
flake8: commands succeeded
ERROR: Job failed: exit code 1