Skip to content
Snippets Groups Projects
Commit 3a32f692 authored by Boston, Reece's avatar Boston, Reece
Browse files

add unit test

parent 4f42c029
Branches EWM6559_PDCalibration_masking_defect-main
No related tags found
No related merge requests found
......@@ -221,6 +221,14 @@ class ConfigServiceTest(unittest.TestCase):
# verify check for converting checked value to string
self.assertFalse(1 in ConfigService)
def test_remove(self):
garbage = "garbage.truck"
assert garbage not in list(config.keys())
config.setString(garbage, "yes")
assert garbage in list(config.keys())
config.remove(garbage)
assert garbage not in list(config.keys())
@unittest.skipIf(not _on_windows, "Windows only test, uses APPDATA")
def test_get_app_data_dir(self):
self.assertEqual(
......
- expose `ConfifService::remove()` to python API
\ No newline at end of file
- expose :class:`ConfigService::remove() <mantid.kernel.ConfigServiceImpl.remove>` to python API
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment