Skip to content

Commit 601a8e2

Browse files
committed
external test plugin tests and coverage should now run
1 parent 28e43bf commit 601a8e2

File tree

18 files changed

+125
-124
lines changed

18 files changed

+125
-124
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__pycache__
33
build
44
dist
5-
cmd2.egg-info
5+
*.egg-info
66
.eggs
77
.cache
88
*.pyc

noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ def docs(session):
1515
def tests(session):
1616
session.install('invoke', './[test]')
1717
session.run('invoke', 'pytest', '--junit', '--no-pty')
18+
19+
session.chdir('./plugins/ext_test')
20+
session.install('.[test]')
21+
session.run('invoke', 'pytest', '--junit', '--no-pty', '--append-cov')
1822
session.run('codecov')
File renamed without changes.
File renamed without changes.

plugins/cmd2_ext_test/cmd2_ext_test/__init__.py renamed to plugins/ext_test/cmd2_ext_test/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
from .cmd2_ext_test import ExternalTestMixin
1111

12+
__all__ = [
13+
'ExternalTestMixin'
14+
]
15+
16+
1217
try:
1318
__version__ = get_distribution(__name__).version
1419
except DistributionNotFound:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)