Skip to content

Commit 94b1eb9

Browse files
feat: introduce inline snapshots (#1605)
Co-authored-by: William Easton <[email protected]> Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
1 parent 677c8a8 commit 94b1eb9

File tree

6 files changed

+540
-279
lines changed

6 files changed

+540
-279
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dev = [
4545
"copychat>=0.5.2",
4646
"dirty-equals>=0.9.0",
4747
"fastapi>=0.115.12",
48+
"inline-snapshot[dirty-equals]>=0.27.2",
4849
"ipython>=8.12.3",
4950
"pdbpp>=0.10.3",
5051
"pre-commit",

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ def pytest_collection_modifyitems(items):
77
# Check if the test is in the integration_tests folder
88
if "integration_tests" in str(item.fspath):
99
item.add_marker(pytest.mark.integration)
10+
11+
12+
@pytest.fixture(autouse=True)
13+
def import_rich_rule():
14+
# What a hack
15+
import rich.rule # noqa: F401
16+
17+
yield

0 commit comments

Comments
 (0)