mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix SIM118 (use `key in dict not key in dict.keys()`)
This commit is contained in:
@@ -51,7 +51,7 @@ def test_theme_api(app, status, warning):
|
||||
# options API
|
||||
|
||||
options = theme.get_options({'nonexisting': 'foo'})
|
||||
assert 'nonexisting' not in options.keys()
|
||||
assert 'nonexisting' not in options
|
||||
|
||||
options = theme.get_options(cfg.html_theme_options)
|
||||
assert options['testopt'] == 'foo'
|
||||
|
||||
Reference in New Issue
Block a user