Commit 88b00aec authored by Thomas Vincent's avatar Thomas Vincent

run tests with only 2 processes

parent db89eac3
......@@ -41,6 +41,7 @@ import numpy as np
from silx.utils.testutils import ParametricTestCase
from xsocs import config
from xsocs.test.testfilesmanager import TestFilesManager
from xsocs.process.fit.peak_fit import PeakFitter
......@@ -130,6 +131,8 @@ class TestPeakFitter(ParametricTestCase):
@classmethod
def setUpClass(cls):
config.DEFAULT_PROCESS_NUMBER = 2 # Limit number of processes
cls._tmpdir = tempfile.mkdtemp()
manager = cls._manager = TestFilesManager('www.silx.org/pub/'
'xsocs/test_data/')
......
......@@ -37,6 +37,8 @@ import tempfile
import unittest
from xsocs import config
from xsocs.test.testfilesmanager import TestFilesManager
from xsocs.process.merge.KmapMerger import KmapMerger
......@@ -77,6 +79,8 @@ class TestMerger(unittest.TestCase):
@classmethod
def setUpClass(cls):
config.DEFAULT_PROCESS_NUMBER = 2 # Limit number of processes
cls._tmpdir = tempfile.mkdtemp()
cls._spec_h5 = os.path.join(cls._tmpdir, 'spec_h5.h5')
manager = cls._manager = TestFilesManager('www.silx.org/pub/'
......
......@@ -38,6 +38,7 @@ import numpy as np
from silx.utils.testutils import ParametricTestCase
from xsocs import config
from xsocs.test.testfilesmanager import TestFilesManager
from xsocs.io.QSpaceH5 import QSpaceH5
......@@ -50,6 +51,8 @@ class TestQSpace(ParametricTestCase):
@classmethod
def setUpClass(cls):
config.DEFAULT_PROCESS_NUMBER = 2 # Limit number of processes
cls._tmpdir = tempfile.mkdtemp()
manager = cls._manager = TestFilesManager(
'www.silx.org/pub/xsocs/test_data/')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment