Created
February 5, 2018 01:57
-
-
Save matutter/5ad4477fcaabbf58d2b5803f0eeb4f8b to your computer and use it in GitHub Desktop.
Pocha, it looks like Mocha for python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| # Example of using pocha, this might be good? | |
| from pocha import describe, it | |
| @describe('A feature') | |
| def test_case(): | |
| @it('Should behave as expected when doing A') | |
| def _(): | |
| assert 1 == 1 | |
| @it('Should behave as expected when doing B') | |
| def _(): | |
| assert 1 == 1 | |
| @describe('A subcomponent') | |
| def test_sub(): | |
| @it('Will be tested as a child test case') | |
| def _(): | |
| assert 1 == 1 |
Author
matutter
commented
Feb 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment