Skip to content

Commit 59e9fe0

Browse files
abid1214claude
andcommitted
Apply black formatting to test_max_k_xor_sat.py
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent c9d7831 commit 59e9fe0

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

tests/test_max_k_xor_sat.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,14 @@ def test_load_nonexistent_config():
205205

206206

207207
def test_xorsat_optimize_dep_name():
208-
"""xorsat-optimize must declare 'Py-BOBYQA' """
208+
"""xorsat-optimize must declare 'Py-BOBYQA'"""
209209
requires = importlib.metadata.requires("qokit") or []
210210
bobyqa_deps = [r for r in requires if "bobyqa" in r.lower()]
211211
assert bobyqa_deps, "No bobyqa dependency found in qokit metadata"
212212
for dep in bobyqa_deps:
213213
pkg = dep.split(";")[0].strip().split()[0].lower()
214-
assert pkg != "pybobyqa", (
215-
f"Dependency '{dep}' uses the typo'd name 'pybobyqa' — use 'Py-BOBYQA' instead"
216-
)
217-
assert pkg in ("py-bobyqa", "py_bobyqa"), (
218-
f"Unexpected bobyqa dependency name '{pkg}' — expected 'py-bobyqa'"
219-
)
214+
assert pkg != "pybobyqa", f"Dependency '{dep}' uses the typo'd name 'pybobyqa' — use 'Py-BOBYQA' instead"
215+
assert pkg in ("py-bobyqa", "py_bobyqa"), f"Unexpected bobyqa dependency name '{pkg}' — expected 'py-bobyqa'"
220216

221217

222218
# ============================================================

0 commit comments

Comments
 (0)