This module provides the core functionality for running PyTest tests within Jupyter Notebook environments.

It includes the do function can be used to pytest testcases.

Overview

The core module enables:

  • PyTest Session Management: Create and manage PyTest sessions in Jupyter
  • Test Function Collection: Collect and organize test functions from notebook cells
  • Test Execution: Run individual tests with proper setup and teardown
  • Result Reporting: Display formatted test results with pass/fail status

Key Features

  • Direct PyTest integration without external files
  • Support for pytest fixtures and test parametrization
  • Clean test result formatting
  • Error handling and traceback display

Core Functions

These functions handle the PyTest integration and test execution workflow.

get_test_funcs[source]

get_test_funcs(**test_entries)

print_result(idx, test_func, method_type)

do[source]

do(**test_entries)