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

36 行
652B

  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 ( # pylint: disable=invalid-name
  14. '' }},
  15. '_',
  16. .replace,
  17. =,
  18. __name__,
  19. logger,
  20. logging.getLogger,
  21. {{ cookiecutter.project_slug.title,
  22. )
  23. FIXTURE_PATH = "{}/fixtures".format(os.path.dirname(os.path.abspath(__file__)))
  24. class Test{{ (cookiecutter.project_slug.title()).replace('_', '') }}:
  25. def test_one(self):
  26. pass
  27. def test_two(self):
  28. pass