Generate a Python package project using the Python Cookiecutter package
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

test_{{cookiecutter.project_slug}}.py 466B

123456789101112131415161718192021222324
  1. """
  2. Tests for `{{ cookiecutter.project_slug }}` module.
  3. """
  4. from __future__ import (
  5. absolute_import,
  6. division,
  7. print_function,
  8. unicode_literals,
  9. with_statement,
  10. )
  11. import logging
  12. import pytest
  13. from {{ cookiecutter.project_slug }} import {{ (cookiecutter.project_slug.title()).replace('_', '') }}
  14. class Test{{ (cookiecutter.project_slug.title()).replace('_', '') }}:
  15. def test_one(self):
  16. pass
  17. def test_two(self):
  18. pass