Skip to content

Conversation

@dmadisetti
Copy link
Collaborator

📝 Summary

Allows @pytest.fixture definitions in the same cell as the pytest cell + adds documentation for fixtures. E.g.

@pytest.fixture
def example():
    return 7

def uses_fixture(example):
    assert example == 7

Aside: Noticed a little bug in pytest, and realized that fixtures were not a large a lift as I initially thought.

closes #6560 #5231 #3569 + related #3683

@dmadisetti dmadisetti requested a review from akshayka as a code owner January 2, 2026 13:15
@vercel
Copy link

vercel bot commented Jan 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jan 2, 2026 5:14pm
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 2, 2026
Co-authored-by: Akshay Agrawal <akshay@marimo.io>
Clarify limitations of pytest fixtures in marimo and provide recommendations for defining fixtures.
@dmadisetti dmadisetti merged commit ad9e11c into main Jan 2, 2026
37 of 41 checks passed
@dmadisetti dmadisetti deleted the dm/pytest-comment branch January 2, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

3 participants