Skip to content

Commit

Permalink
TST #194
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Aug 15, 2019
1 parent 918ebd7 commit 35eaa30
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,10 @@ def test_sample_control_line_keys(self):
'#H\\d+' : r'#H4 FB_o2_on FB_o2_r FB_o2_sp',
None : r'#Pete wrote this stuff',
'scan_data' : r'43.6835 0.998671 -0.0100246 11.0078 1 0 66 1 0 863 0 0 1225 1225',
'#@[cC][aA][lL][iI][bB]' : r'#@CALIB 1 2 3',
#'#@[cC][aA][lL][iI][bB]' : r'#@CALIB 1 2 3',
'#@[cC][aA][lL][iI][bB]' : r'#@Calib 0.0501959 0.0141105 0 mca1',
}
for k, v in spec_data.items():
if k == '#@CALIB':
pass
_k = self.manager.getKey(v)
self.assertEqual(k, self.manager.getKey(v))


Expand All @@ -82,8 +79,8 @@ def test_custom_plugin(self):
_p = os.path.dirname(__file__)
_p = os.path.join(_p, "custom_plugins")
_filename = os.path.join(_p, "specfile.txt")
custom_key = "#TEST" # in SPEC data file
custom_attribute = "MyTest" # in python, scan.MyTest
# custom_key = "#TEST" # in SPEC data file
# custom_attribute = "MyTest" # in python, scan.MyTest

# first, test data with custom control line without plugin loaded
self.assertNotIn("#TEST", manager.registry)
Expand Down

0 comments on commit 35eaa30

Please sign in to comment.