Skip to content

Commit

Permalink
fixed config test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtitov committed Oct 24, 2023
1 parent 86d69f2 commit e5e7a6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unittests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,15 @@ def test_user_config(self):
self.assertEqual(c.foo_0.foo_1.foo2, 'bar')
self.assertIsInstance(c.foo_0.foo_1, ru.Config)

del os.environ['RADICAL_CONFIG_USER_DIR']
saved_home_dir = os.environ['HOME']
del os.environ['HOME']
del os.environ['RADICAL_CONFIG_USER_DIR']

c2 = ru.Config(module='radical.utils', category='user')
# no config data collected
self.assertFalse(c2.as_dict())

os.environ['HOME'] = saved_home_dir

# ------------------------------------------------------------------------------

0 comments on commit e5e7a6e

Please sign in to comment.