https://github.com/datacamp/shellwhat_ext
Extensions to shellwhat testing
https://github.com/datacamp/shellwhat_ext
fs le
Last synced: about 1 year ago
JSON representation
Extensions to shellwhat testing
- Host: GitHub
- URL: https://github.com/datacamp/shellwhat_ext
- Owner: datacamp
- License: agpl-3.0
- Created: 2017-11-03T15:20:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T18:40:43.000Z (almost 4 years ago)
- Last Synced: 2025-03-26T19:12:14.476Z (about 1 year ago)
- Topics: fs, le
- Language: Python
- Size: 72.3 KB
- Stars: 0
- Watchers: 28
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> :warning: **This repo has outdated tokens in its travisci config**
> To make new releases for this project it needs to be moved to circleci
# shellwhat_ext
[](https://travis-ci.org/datacamp/sqlwhat_ext)
[](https://codecov.io/gh/datacamp/shellwhat_ext)
[](https://badge.fury.io/py/shellwhat-ext)
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdatacamp%2Fshellwhat_ext?ref=badge_shield)
Extensions to [shellwhat](http://github.com/datacamp/shellwhat) testing.
## Including in a DataCamp course
In the course's `requirements.sh`, add
```
# replace 0.0.1 with the appropriate release version
pip3 install --no-deps shellwhat-ext==0.0.1
```
To use the extensions in an exercise's SCT, import the function you want into the SCT block of the exercise:
```python
from shellwhat_ext import test_cmdline
Ex() >> test_cmdline([['wc', 'l', '+']])
```
## Deploying to PyPI
Follow these steps
1. Open a PR, merge into master when appropriate.
2. Once merged, increment `__version__ = 0.0.1` to reflect changes ([see semver for guidance](http://semver.org/)).
3. Create a github release labeled `vVERSION`. E.g. `v0.0.1`. (see [here](https://help.github.com/articles/creating-releases/)).
## Running tests
```
make install
make test
```
## License
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fdatacamp%2Fshellwhat_ext?ref=badge_large)