Skip to content

Commit

Permalink
Merge pull request #2318 from kif/merge_fiber_to_test_suite
Browse files Browse the repository at this point in the history
Include fiber integrator into test suite
  • Loading branch information
kif authored Nov 5, 2024
2 parents e93c457 + 9111188 commit f5d5cc8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/pyFAI/test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
__contact__ = "[email protected]"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
__date__ = "16/04/2024"
__date__ = "30/10/2024"

import sys
import unittest
Expand Down Expand Up @@ -95,6 +95,7 @@
from . import test_units
from . import test_uncertainties
from . import test_ring_extraction
from . import test_fiber_integrator

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -156,7 +157,7 @@ def suite():
testsuite.addTest(test_error_model.suite())
testsuite.addTest(test_uncertainties.suite())
testsuite.addTest(test_ring_extraction.suite())

testsuite.addTest(test_fiber_integrator.suite())
return testsuite


Expand Down
14 changes: 13 additions & 1 deletion src/pyFAI/test/test_fiber_integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
__contact__ = "[email protected]"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
__date__ = "23/10/2024"
__date__ = "30/10/2024"

import unittest
import logging
Expand Down Expand Up @@ -444,3 +444,15 @@ def test_sample_orientation_equivalence(self):
)

self.assertLess((abs(res_so_4.intensity) - abs(res_so_3.intensity)).max(), threshold)


def suite():
testsuite = unittest.TestSuite()
loader = unittest.defaultTestLoader.loadTestsFromTestCase
testsuite.addTest(loader(TestFiberIntegrator))
return testsuite


if __name__ == '__main__':
runner = unittest.TextTestRunner()
runner.run(suite())

0 comments on commit f5d5cc8

Please sign in to comment.