From 0061f90cb4ae989de154d134b4573c3405fdf0c1 Mon Sep 17 00:00:00 2001 From: Eleni Mathioulaki <emathioulaki@athenarc.gr> Date: Thu, 16 May 2024 16:41:40 +0200 Subject: [PATCH] feat(py-nestml): add unit tests --- packages/py-nestml/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/py-nestml/package.py b/packages/py-nestml/package.py index beb2ca66..85545608 100644 --- a/packages/py-nestml/package.py +++ b/packages/py-nestml/package.py @@ -36,4 +36,11 @@ class PyNestml(PythonPackage): depends_on('py-astropy', type=('build', 'run')) depends_on('py-odetoolbox@2.4:', type=('build', 'run')) depends_on('nest', type=('build', 'run')) + depends_on('cmake', type=('run', 'test')) depends_on('py-pytest', type='test') + + @run_after('install') + @on_package_attributes(run_tests=True) + def install_test(self): + pytest = which('pytest') + pytest('tests', '-o', 'norecursedirs="*"') -- GitLab