summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-04-02 11:15:26 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-04-08 10:00:16 -0700
commit4c1d1da9b6a1e3f144d26dbc73f9d02f4f7f7e97 (patch)
tree6627ed741721d1961427237bb5e7b1e6d012034e /unittests
parent90d6a3e61100e39ab74ff7b2b4bc456af5a8114c (diff)
downloadmeson-4c1d1da9b6a1e3f144d26dbc73f9d02f4f7f7e97.tar.gz
options: fix typing issues stemming from initialize_from_top_level_project_call
Machine files provide a `Mapping[OptionKey, ElementaryOptionValues]`, but the expectation listed was that they provided options in the raw DSL format.
Diffstat (limited to 'unittests')
-rw-r--r--unittests/optiontests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/optiontests.py b/unittests/optiontests.py
index d02119a06..3b3ffc98e 100644
--- a/unittests/optiontests.py
+++ b/unittests/optiontests.py
@@ -32,7 +32,7 @@ class OptionTests(unittest.TestCase):
vo = UserStringOption(k.name, 'An option of some sort', default_value)
optstore.add_system_option(k.name, vo)
self.assertEqual(optstore.get_value_for(k), default_value)
- optstore.initialize_from_top_level_project_call([f'someoption={new_value}'], {}, {})
+ optstore.initialize_from_top_level_project_call({OptionKey('someoption'): new_value}, {}, {})
self.assertEqual(optstore.get_value_for(k), new_value)
def test_parsing(self):