Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
rev: 8.0.1
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.3.1
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,9 @@ def test_create_margherita_invalid() -> None:
with pytest.raises(AssertionError) as excinfo:
Pizza.margherita(0)
msg = str(excinfo.value)
assert (
"0 \
assert "0 \
< self.radius \
<= 10"
in msg
)
<= 10" in msg


def test_circle_area_valid() -> None:
Expand Down
12 changes: 4 additions & 8 deletions packages/python-ta/tests/test_z3_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ def f(x: int, y: float, z: bool, a: str):
"""

# test cases for arithmetic expressions
arithmetic_list = [
"""
arithmetic_list = ["""
def f(x: int, y: int, z: float, a):
'''
Preconditions:
Expand All @@ -28,21 +27,18 @@ def f(x: int, y: int, z: float, a):
- x + y != z
'''
pass
"""
]
"""]

# test cases for boolean expressions
boolean_list = [
"""
boolean_list = ["""
def f(x: bool, y: bool, z: bool, a):
'''
Preconditions:
- x and y and z
- not (x or y or z)
'''
pass
"""
]
"""]

# test cases for container (list/set/tuple) expressions
container_list = [
Expand Down