Skip to content

Commit 4f631be

Browse files
committed
Minor cleanup. Removed some experiments that weren't supposed to be included
1 parent 601a8e2 commit 4f631be

File tree

5 files changed

+13
-28
lines changed

5 files changed

+13
-28
lines changed

noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ def tests(session):
1616
session.install('invoke', './[test]')
1717
session.run('invoke', 'pytest', '--junit', '--no-pty')
1818

19+
# cd into test directory to run other unit test
1920
session.chdir('./plugins/ext_test')
2021
session.install('.[test]')
2122
session.run('invoke', 'pytest', '--junit', '--no-pty', '--append-cov')
23+
24+
# return to top directory to submit coverage
25+
session.chdir('../..')
2226
session.run('codecov')

plugins/ext_test/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## 1.0.0 (2020-03-09)
7+
## 0.2.0 (TBD)
8+
- Relocated inside of cmd2 project
9+
- Fixes to match cmd2 API changes
10+
11+
## 0.1.0 (2020-03-09)
812

913
### Added
1014
- Initial contribution

plugins/ext_test/LICENSE

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

plugins/ext_test/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
setuptools.setup(
1414
name='cmd2-ext-test',
1515
version='0.2.0',
16+
# TODO: Figure out why this doesn't work on CI Server
1617
# use_scm_version={
1718
# 'root': '../..',
1819
# 'relative_to': __file__,

plugins/tasks.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@
2828
#####
2929

3030

31+
@invoke.task(pre=[ext_test_tasks.pytest])
3132
@invoke.task()
32-
def pytest(_, junit=False, pty=True):
33+
def pytest(_):
3334
"""Run tests and code coverage using pytest"""
34-
35-
iexec = invoke.Executor([])
36-
iexec.execute([
37-
invoke.call(ext_test_tasks.pytest, junit=junit, pty=pty, append_cov=True)
38-
])
35+
pass
3936

4037

4138
namespace.add_task(pytest)

0 commit comments

Comments
 (0)