diff --git a/packages/py-cobrawap/package.py b/packages/py-cobrawap/package.py index 81b3e7366692dfde8b8f99845835d8af8f4af3fc..f1f0b00dc8f275f205cf1b31cc4adc8c07ae9a04 100644 --- a/packages/py-cobrawap/package.py +++ b/packages/py-cobrawap/package.py @@ -48,11 +48,11 @@ class PyCobrawap(PythonPackage): depends_on("py-seaborn", type=("build", "run"), when="@0.1:") depends_on("py-networkx", type=("build", "run"), when="@0.1:") -@run_after("install") -@on_package_attributes(run_tests=True) -def init_test(self): - # run test here - cobrawap = which("cobrawap") - cobrawap("init", "--output_path", "/tmp/output_path", "--config_path", "/tmp/config_path") - cobrawap("settings") - # test_dataset_url = "https://object.cscs.ch/v1/AUTH_63ea6845b1d34ad7a43c8158d9572867/hbp-d000036_m-SWA-WF-wide-regions-v2_pub/m-SWA-WF-wide-regions/GCaMP6f_Ketamine%20I/t3.rar" + @run_after("install") + @on_package_attributes(run_tests=True) + def init_test(self): + # run test here + cobrawap = Executable(self.prefix.bin + "/cobrawap") + cobrawap("init", "--output_path", "/tmp/output_path", "--config_path", "/tmp/config_path") + cobrawap("settings") + # test_dataset_url = "https://object.cscs.ch/v1/AUTH_63ea6845b1d34ad7a43c8158d9572867/hbp-d000036_m-SWA-WF-wide-regions-v2_pub/m-SWA-WF-wide-regions/GCaMP6f_Ketamine%20I/t3.rar"