Source code for blissoda.demo.tests.itest_exafs

"""Integration tests for the generic EXAFS processor."""

from .. import testing
from ..processors.exafs import DemoExafsProcessor
from .utils import exafs


[docs] @testing.integration_fixture def exafs_processor(): return DemoExafsProcessor()
[docs] @testing.integration_test def test_exafs_scan(exafs_processor, nrepeats: int = None, fast: bool = True): if nrepeats is None: nrepeats = exafs_processor.max_scans + 1 exafs_processor.clear() for _ in range(nrepeats): exafs.test_exafs_scan(exafs_processor, fast=fast, split=True)