Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 10, 2024
1 parent f61e340 commit 6795aab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_ui_mpldrawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,17 @@ def test_render_label():
assert _render_label("q_0", inits) != ""
assert _render_label("q_8", inits) != ""


def test_render_label_empty():
inits = {"q_0":None}
inits = {"q_0": None}
assert _render_label("q_0", inits) == ""


def test_render_label_not_empty():
inits = {"q_0":"\psi"}
inits = {"q_0": r"\psi"}
_render_label("q_0", inits) != ""


def test_cluster_gates():
"""Test clustering gates"""
pgates = [
Expand Down

0 comments on commit 6795aab

Please sign in to comment.