Skip to content

Commit 48d7691

Browse files
committed
Delete the cmd2_ext_test.py plugin code from the cmd2 repo
Also: - Copy the ExternalTestMixin class implementation to the `tests_isolated_test_commandset/conftest.py` file - Remove info on the External Test Plugin from the documentation - Add info on the cmd2 Plugin Template to the documentation - Remove loading of `cmd2-ext-test` source code from the pyproject.toml - Removed ext-test stuff from tasks.py for invoke usage There is likely a lot more cleanup that can and should be done. This is just a first attempt to get our GitHub Actions CI/CD working without this plugin's circular dependency.
1 parent f9805db commit 48d7691

File tree

23 files changed

+87
-940
lines changed

23 files changed

+87
-940
lines changed

docs/plugins/external_test.md

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/plugins/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
<!--intro-start-->
44

5-
- [External Test Plugin](external_test.md)
5+
- [cmd2 Plugin Template](plugin_template.md)
66

77
<!--intro-end-->

docs/plugins/plugin_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# cmd2 Plugin Template
2+
3+
## Overview
4+
5+
The [cmd2 Plugin Template](https://github.com/python-cmd2/cmd2/tree/main/plugins/template) is a
6+
general example that shows you how you can develop a plugin for `cmd2`. Plugins are generally mixin
7+
classes that add some extra functionality to your class which inherits from [cmd2.Cmd][].

docs/testing.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ This covers special considerations when writing unit or integration tests for a
66

77
## Testing Commands
88

9-
The [External Test Plugin](plugins/external_test.md) provides a mixin class with a function that
10-
allows external calls to application commands. The `cmd2_ext_test.ExternalTestMixin.app_cmd`
11-
function captures and returns stdout, stderr, and the command-specific result data.
9+
We encourage `cmd2` application developers to look at the
10+
[cmd2 tests](https://github.com/python-cmd2/cmd2/tree/main/tests) for examples of how to perform
11+
unit and integration testing of `cmd2` commands. There are various helpers that will do things like
12+
capture and return stdout, stderr, and command-specific result data.
1213

1314
## Mocking
1415

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ nav:
195195
- examples/examples.md
196196
- Plugins:
197197
- plugins/index.md
198-
- plugins/external_test.md
198+
- plugins/plugin_template.md
199199
- Testing:
200200
- testing.md
201201
- API Reference:

plugins/ext_test/CHANGELOG.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

plugins/ext_test/README.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

plugins/ext_test/build-pyenvs.sh

Lines changed: 0 additions & 53 deletions
This file was deleted.

plugins/ext_test/cmd2_ext_test/__init__.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)