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

add unit test

parent 86f35a62
Branches ewm6854-ConfigService-remove
No related tags found
No related merge requests found
......@@ -220,6 +220,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