Skip to content

Commit be03202

Browse files
committed
libtmux(textframe): Move core module to src/libtmux/textframe/
why: Enable distribution of TextFrame for downstream users. what: - Move tests/textframe/core.py → src/libtmux/textframe/core.py - Create src/libtmux/textframe/__init__.py with public API exports - Update test imports to use libtmux.textframe
1 parent c412f09 commit be03202

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

src/libtmux/textframe/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""TextFrame - ASCII terminal frame simulator with pytest/syrupy integration."""
2+
3+
from __future__ import annotations
4+
5+
from libtmux.textframe.core import ContentOverflowError, TextFrame
6+
7+
__all__ = ["ContentOverflowError", "TextFrame"]

tests/textframe/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import pytest
99
from syrupy.assertion import SnapshotAssertion
1010

11-
from .core import TextFrame
11+
from libtmux.textframe import TextFrame
12+
1213
from .plugin import TextFrameExtension
1314

1415

tests/textframe/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from syrupy.extensions.single_file import SingleFileSnapshotExtension, WriteMode
1212

13-
from .core import ContentOverflowError, TextFrame
13+
from libtmux.textframe import ContentOverflowError, TextFrame
1414

1515

1616
class TextFrameExtension(SingleFileSnapshotExtension):

tests/textframe/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pytest
99
from syrupy.assertion import SnapshotAssertion
1010

11-
from .core import ContentOverflowError, TextFrame
11+
from libtmux.textframe import ContentOverflowError, TextFrame
1212

1313
if t.TYPE_CHECKING:
1414
from collections.abc import Sequence

0 commit comments

Comments
 (0)