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
74 changes: 0 additions & 74 deletions docs/plugins/external_test.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/plugins/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

<!--intro-start-->

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

<!--intro-end-->
7 changes: 7 additions & 0 deletions docs/plugins/plugin_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# cmd2 Plugin Template

## Overview

The [cmd2 Plugin Template](https://github.com/python-cmd2/cmd2/tree/main/plugins/template) is a
general example that shows you how you can develop a plugin for `cmd2`. Plugins are generally mixin
classes that add some extra functionality to your class which inherits from [cmd2.Cmd][].
7 changes: 4 additions & 3 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ This covers special considerations when writing unit or integration tests for a

## Testing Commands

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

## Mocking

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ nav:
- examples/examples.md
- Plugins:
- plugins/index.md
- plugins/external_test.md
- plugins/plugin_template.md
- Testing:
- testing.md
- API Reference:
Expand Down
22 changes: 0 additions & 22 deletions plugins/ext_test/CHANGELOG.md

This file was deleted.

82 changes: 0 additions & 82 deletions plugins/ext_test/README.md

This file was deleted.

53 changes: 0 additions & 53 deletions plugins/ext_test/build-pyenvs.sh

This file was deleted.

18 changes: 0 additions & 18 deletions plugins/ext_test/cmd2_ext_test/__init__.py

This file was deleted.

67 changes: 0 additions & 67 deletions plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py

This file was deleted.

1 change: 0 additions & 1 deletion plugins/ext_test/cmd2_ext_test/py.typed

This file was deleted.

10 changes: 0 additions & 10 deletions plugins/ext_test/cmd2_ext_test/pylintrc

This file was deleted.

Loading
Loading