diff --git a/packages/py-siibra/package.py b/packages/py-siibra/package.py index 5b6c313827ffc9c17b8945bc36954b2dc0661d85..a64b177390a7170a7c6057c0a45dda3becc684ff 100644 --- a/packages/py-siibra/package.py +++ b/packages/py-siibra/package.py @@ -32,11 +32,11 @@ class PySiibra(PythonPackage): depends_on('py-typing-extensions', type=('build', 'run'), when='^python@:3.7') depends_on('py-filelock', type=('build', 'run')) - depends_on('py-pytest', type='test') + depends_on('py-pytest', type=('test')) - # @run_after('install') - # @on_package_attributes(run_tests=True) - # def install_test(self): - # with working_dir('spack-test', create=True): - # pytest("-rx") + @run_after('install') + @on_package_attributes(run_tests=True) + def install_test(self): + pytest = which("pytest") + pytest("-rx")