Skip to content

Commit

Permalink
[FIX] server_environment: Fix tests on complex environments
Browse files Browse the repository at this point in the history
Without this change, the test will fail if we have queue_job installed (for example)
  • Loading branch information
etobella committed Dec 17, 2024
1 parent 07d321d commit 2806a6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server_environment/tests/test_environment_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def test_env_variables(self):
secret = "[section]\n" "bar=foo\n" "alice=bob\n"
with self.set_config_dir(None), self.set_env_variables(public, secret):
parser = server_env._load_config()
self.assertEqual(list(parser.keys()), ["DEFAULT", "section"])
self.assertIn("DEFAULT", list(parser.keys()))
self.assertIn("section", list(parser.keys()))
self.assertDictEqual(
dict(parser["section"].items()),
{"alice": "bob", "bar": "foo", "foo": "bar"},
Expand Down

0 comments on commit 2806a6c

Please sign in to comment.