class TestCheese(unittest.TestCase):
def setUp(self):
pass
def test_something(self):
pass
def tearDown(self):
pass
if __name__ == '__main__':
unittest.main()
inside cookiecutter-pypackage?
!bash
➜ tests cd ~/.cookiecutters/cookiecutter-pypackage
➜ cookiecutter-pypackage git:(master) ls
README.rst cookiecutter.json {{cookiecutter.repo_name}}
➜ cookiecutter-pypackage git:(master) cat cookiecutter.json
{
"full_name": "Audrey Roy",
"email": "
[email protected]",
"github_username": "audreyr",
"project_name": "Python Boilerplate",
"repo_name": "boilerplate",
"project_short_description": "Python Boilerplate contains all the boilerplate you need to create a
Python package.",
"release_date": "2013-08-11",
"year": "2013",
"version": "0.1.0"
}
More
!bash
➜ {{cookiecutter.repo_name}} git:(master) ls
AUTHORS.rst Makefile tests
CONTRIBUTING.rst README.rst tox.ini
HISTORY.rst docs {{cookiecutter.repo_name}}
LICENSE requirements.txt
MANIFEST.in setup.py
➜ {{cookiecutter.repo_name}} git:(master) ls docs
Makefile conf.py history.rst installation.rst readme.rst