Skip to content

Added beam correction tests - #678

Open
LowriJenkins wants to merge 8 commits into
masterfrom
Ticket8830_Muon_Active_beam_compensation
Open

LowriJenkins wants to merge 8 commits into
masterfrom
Ticket8830_Muon_Active_beam_compensation

Conversation

@LowriJenkins

Copy link
Copy Markdown
Contributor

Comment thread tests/beamcorrections.py
Comment thread tests/beamcorrections.py Outdated
@LowriJenkins
LowriJenkins force-pushed the Ticket8830_Muon_Active_beam_compensation branch from 28676bc to e985097 Compare October 21, 2026 08:28

@Tom-Willemsen Tom-Willemsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

======================================================================
ERROR [1.200s]: test_GIVEN_kepco_running_AND_corrections_disabled_AND_not_recsim_THEN_properly_sets_to_kepco (tests.beamcorrections.BEAMCORRTests.test_GIVEN_kepco_running_AND_corrections_disabled_AND_not_recsim_THEN_properly_sets_to_kepco)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\testing.py", line 236, in wrapper
    return func(*args, **kwargs)
  File "C:\Instrument\Apps\EPICS\support\IocTestFramework\master\tests\beamcorrections.py", line 252, in test_GIVEN_kepco_running_AND_corrections_disabled_AND_not_recsim_THEN_properly_sets_to_kepco
    self.kepco_setup()
    ~~~~~~~~~~~~~~~~^^
  File "C:\Instrument\Apps\EPICS\support\IocTestFramework\master\tests\beamcorrections.py", line 230, in kepco_setup
    self._kepco_emulator_1.backdoor_run_function_on_device("reset")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\emulator_launcher.py", line 757, in backdoor_run_function_on_device
    return self.backdoor_command(command)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\emulator_launcher.py", line 772, in backdoor_command
    time_stamp = datetime.fromtimestamp(time(), tz=datetime.UTC).strftime("%Y-%m-%d %H:%M:%S")
                                                   ^^^^^^^^^^^^
AttributeError: type object 'datetime.datetime' has no attribute 'UTC'

======================================================================
ERROR [1.298s]: test_GIVEN_kepco_running_AND_corrections_enabled_AND_not_recsim_THEN_properly_sets_to_kepco (tests.beamcorrections.BEAMCORRTests.test_GIVEN_kepco_running_AND_corrections_enabled_AND_not_recsim_THEN_properly_sets_to_kepco)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\testing.py", line 236, in wrapper
    return func(*args, **kwargs)
  File "C:\Instrument\Apps\EPICS\support\IocTestFramework\master\tests\beamcorrections.py", line 262, in test_GIVEN_kepco_running_AND_corrections_enabled_AND_not_recsim_THEN_properly_sets_to_kepco
    self.kepco_setup()
    ~~~~~~~~~~~~~~~~^^
  File "C:\Instrument\Apps\EPICS\support\IocTestFramework\master\tests\beamcorrections.py", line 230, in kepco_setup
    self._kepco_emulator_1.backdoor_run_function_on_device("reset")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\emulator_launcher.py", line 757, in backdoor_run_function_on_device
    return self.backdoor_command(command)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\emulator_launcher.py", line 772, in backdoor_command
    time_stamp = datetime.fromtimestamp(time(), tz=datetime.UTC).strftime("%Y-%m-%d %H:%M:%S")
                                                   ^^^^^^^^^^^^
AttributeError: type object 'datetime.datetime' has no attribute 'UTC'

======================================================================
ERROR [1.299s]: test_GIVEN_kepco_running_AND_not_recsim_THEN_properly_reads_from_kepco (tests.beamcorrections.BEAMCORRTests.test_GIVEN_kepco_running_AND_not_recsim_THEN_properly_reads_from_kepco)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\testing.py", line 236, in wrapper
    return func(*args, **kwargs)
  File "C:\Instrument\Apps\EPICS\support\IocTestFramework\master\tests\beamcorrections.py", line 241, in test_GIVEN_kepco_running_AND_not_recsim_THEN_properly_reads_from_kepco
    self.kepco_setup()
    ~~~~~~~~~~~~~~~~^^
  File "C:\Instrument\Apps\EPICS\support\IocTestFramework\master\tests\beamcorrections.py", line 230, in kepco_setup
    self._kepco_emulator_1.backdoor_run_function_on_device("reset")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\emulator_launcher.py", line 757, in backdoor_run_function_on_device
    return self.backdoor_command(command)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "c:\Instrument\Apps\EPICS\support\IocTestFramework\master\utils\emulator_launcher.py", line 772, in backdoor_command
    time_stamp = datetime.fromtimestamp(time(), tz=datetime.UTC).strftime("%Y-%m-%d %H:%M:%S")
                                                   ^^^^^^^^^^^^
AttributeError: type object 'datetime.datetime' has no attribute 'UTC'

----------------------------------------------------------------------
Ran 36 tests in 43.660s

FAILED (errors=3, skipped=33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants