Skip to content

Commit

Permalink
Merge pull request #121 from ZLLentz/tst_plugin_hotfix
Browse files Browse the repository at this point in the history
TST: fix issue with outdated test hotfix
  • Loading branch information
ZLLentz authored Aug 12, 2022
2 parents 2c6a4bd + c872910 commit 5e1201b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hxrsnd/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ def change_all_plugin_types(comp):
# Hotfix area detector plugins for tests
for comp in (PCDSAreaDetector.image1, PCDSAreaDetector.stats2):
plugin_class = comp.cls
plugin_class.plugin_type = Cmp(Signal, value=plugin_class._plugin_type)
cpt = Cmp(Signal, value=plugin_class._plugin_type)
cpt.attr = 'plugin_type'
plugin_class.plugin_type = cpt

# Hotfix make_fake_device for ophyd=1.2.0
fake_device_cache[EpicsSignalWithRBV] = FakeEpicsSignal
Expand Down

0 comments on commit 5e1201b

Please sign in to comment.