https://github.com/codewars/python-test-framework
Codewars test framework for Python
https://github.com/codewars/python-test-framework
code-runner python test-framework
Last synced: 8 months ago
JSON representation
Codewars test framework for Python
- Host: GitHub
- URL: https://github.com/codewars/python-test-framework
- Owner: codewars
- License: mit
- Created: 2019-02-14T23:09:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T20:14:20.000Z (over 2 years ago)
- Last Synced: 2024-04-14T11:04:39.786Z (over 1 year ago)
- Topics: code-runner, python, test-framework
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 63
- Watchers: 10
- Forks: 22
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Codewars Test Framework for Python
### Installation
```bash
pip install git+https://github.com/codewars/python-test-framework.git#egg=codewars_test
```
### Basic Example
```python
import codewars_test as test
from solution import add
@test.describe('Example Tests')
def example_tests():
@test.it('Example Test Case')
def example_test_case():
test.assert_equals(add(1, 1), 2, 'Optional Message on Failure')
```