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

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

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests for `{{ cookiecutter.project_slug }}` module.
  4. """
  5. from __future__ import (
  6. absolute_import,
  7. division,
  8. print_function,
  9. with_statement,
  10. unicode_literals
  11. )
  12. import logging
  13. import pytest
  14. from {{ cookiecutter.project_slug }} import {{ (cookiecutter.project_slug.title()).replace('_', '') }}
  15. logger = logging.getLogger(__name__) # pylint: disable=invalid-name
  16. FIXTURE_PATH = "{}/fixtures".format(os.path.dirname(os.path.abspath(__file__)))
  17. class Test{{ (cookiecutter.project_slug.title()).replace('_', '') }}:
  18. def test_one(self):
  19. pass
  20. def test_two(self):
  21. pass