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
25 changes: 9 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
[project]
name = "pytest-markdown-console"
version = "0.0.1"
description = "A pytest extension to test console code blocks in markdown files."
readme = "README.md"
authors = [
{ name = "confarg", email = "280620574+confarg@users.noreply.github.com" }
]
requires-python = ">=3.12"
dependencies = [
"pytest>=8",
{ name = "confarg", email = "280620574+confarg@users.noreply.github.com" },
]
dependencies = ["pytest>=8"]
description = "A pytest plugin to test console code blocks in markdown files."
license = "MPL-2.0"
name = "pytest-markdown-console"
readme = "README.md"
requires-python = ">=3.12"
version = "0.0.1"

[project.entry-points."pytest11"]
markdown-console = "pytest_markdown_console"

[build-system]
requires = ["uv_build>=0.11.13,<0.12.0"]
build-backend = "uv_build"
requires = ["uv_build>=0.11.13,<0.12.0"]

[dependency-groups]
dev = [
"pre-commit>=4.6.0",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"ty>=0.0.40",
]
dev = ["pre-commit>=4.6.0", "pytest>=9.0.3", "pytest-cov>=7.1.0", "ty>=0.0.40"]
4 changes: 4 additions & 0 deletions src/pytest_markdown_console/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""pytest plugin for testing console code blocks in Markdown files."""

from .plugin import markdown_console_tmpdir as markdown_console_tmpdir
Expand Down
4 changes: 4 additions & 0 deletions src/pytest_markdown_console/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Data model for parsed console blocks."""

from __future__ import annotations
Expand Down
4 changes: 4 additions & 0 deletions src/pytest_markdown_console/parsing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Parsing of fenced console blocks from Markdown source."""

from __future__ import annotations
Expand Down
4 changes: 4 additions & 0 deletions src/pytest_markdown_console/plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""pytest collector and item classes for Markdown console blocks."""

from __future__ import annotations
Expand Down
4 changes: 4 additions & 0 deletions src/pytest_markdown_console/runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Command execution and output matching for console blocks."""

from __future__ import annotations
Expand Down
4 changes: 4 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Test suite for pytest-markdown-console."""
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Pytest configuration for the test suite."""

pytest_plugins = ["pytester"]
4 changes: 4 additions & 0 deletions tests/test_parsing.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Tests for Markdown console block parsing."""

import pytest
Expand Down
4 changes: 4 additions & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Integration tests for the pytest plugin using pytester."""

import sys
Expand Down
4 changes: 4 additions & 0 deletions tests/test_runner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""Tests for command execution and output matching."""

from unittest.mock import MagicMock, patch
Expand Down
Loading