File: __init__.py

package info (click to toggle)
cmd2 2.4.2%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,672 kB
  • sloc: python: 19,288; makefile: 88; sh: 16
file content (26 lines) | stat: -rw-r--r-- 686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# coding=utf-8
"""cmd2 External Python Testing Mixin

Allows developers to exercise their cmd2 application using the PyScript interface
"""

try:
    # For python 3.8 and later
    import importlib.metadata as importlib_metadata
except ImportError:  # pragma: no cover
    # For everyone else
    # MyPy Issue # 1153 causes a spurious error that must be ignored
    import importlib_metadata  # type: ignore

try:
    __version__ = importlib_metadata.version(__name__)
except importlib_metadata.PackageNotFoundError:  # pragma: no cover
    # package is not installed
    __version__ = 'unknown'

from .cmd2_ext_test import (
    ExternalTestMixin,
)

__all__ = ['ExternalTestMixin']