<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
test_{{ cookiecutter.project_slug }}
----------------------------------

Tests for `{{ cookiecutter.project_slug }}` module.
"""
{% if cookiecutter.use_pytest == 'y' -%}
import pytest
{% else %}
import sys
import unittest
{%- endif %}
{%- if cookiecutter.command_line_interface|lower == 'click' %}
from contextlib import contextmanager
from click.testing import CliRunner
{%- endif %}

from {{ cookiecutter.project_slug }} import {{ cookiecutter.project_slug }}
{%- if cookiecutter.command_line_interface|lower == 'click' %}
from {{ cookiecutter.project_slug }} import cli
{%- endif %}


{% if cookiecutter.use_pytest == 'y' -%}
class Test{{ cookiecutter.project_slug|title }}(object):

    @classmethod
    def setup_class(cls):
        pass

    def test_something(self):
        pass

{%- if cookiecutter.command_line_interface|lower == 'click' %}
    def test_command_line_interface(self):
        runner = CliRunner()
        result = runner.invoke(cli.main)
        assert result.exit_code == 0
        assert 'script for {{ cookiecutter.project_slug }}' in result.output
        help_result = runner.invoke(cli.main, ['--help'])
        assert help_result.exit_code == 0
        assert '--help  Show this message and exit.' in help_result.output

{%- endif %}

    @classmethod
    def teardown_class(cls):
        pass
{% else %}
class Test{{ cookiecutter.project_slug|title }}(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_000_something(self):
        pass
{% if cookiecutter.command_line_interface|lower == 'click' %}
    def test_command_line_interface(self):
        runner = CliRunner()
        result = runner.invoke(cli.main)
        assert result.exit_code == 0
        assert 'script for {{ cookiecutter.project_slug }}' in result.output
        help_result = runner.invoke(cli.main, ['--help'])
        assert help_result.exit_code == 0
        assert '--help  Show this message and exit.' in help_result.output

{%- endif %}        


if __name__ == '__main__':
    sys.exit(unittest.main())
{%- endif %}
<commit_msg>Fixed spacing<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
test_{{ cookiecutter.project_slug }}
----------------------------------

Tests for `{{ cookiecutter.project_slug }}` module.
"""

{% if cookiecutter.use_pytest == 'y' -%}
import pytest
{% else %}
import sys
import unittest
{%- endif %}
{%- if cookiecutter.command_line_interface|lower == 'click' %}
from contextlib import contextmanager
from click.testing import CliRunner
{%- endif %}

from {{ cookiecutter.project_slug }} import {{ cookiecutter.project_slug }}
{%- if cookiecutter.command_line_interface|lower == 'click' %}
from {{ cookiecutter.project_slug }} import cli
{%- endif %}


{% if cookiecutter.use_pytest == 'y' -%}
class Test{{ cookiecutter.project_slug|title }}(object):

    @classmethod
    def setup_class(cls):
        pass

    def test_something(self):
        pass

{%- if cookiecutter.command_line_interface|lower == 'click' %}
    def test_command_line_interface(self):
        runner = CliRunner()
        result = runner.invoke(cli.main)
        assert result.exit_code == 0
        assert 'script for {{ cookiecutter.project_slug }}' in result.output
        help_result = runner.invoke(cli.main, ['--help'])
        assert help_result.exit_code == 0
        assert '--help  Show this message and exit.' in help_result.output

{%- endif %}

    @classmethod
    def teardown_class(cls):
        pass
{% else %}
class Test{{ cookiecutter.project_slug|title }}(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_000_something(self):
        pass
{% if cookiecutter.command_line_interface|lower == 'click' %}
    def test_command_line_interface(self):
        runner = CliRunner()
        result = runner.invoke(cli.main)
        assert result.exit_code == 0
        assert 'script for {{ cookiecutter.project_slug }}' in result.output
        help_result = runner.invoke(cli.main, ['--help'])
        assert help_result.exit_code == 0
        assert '--help  Show this message and exit.' in help_result.output

{%- endif %}        


if __name__ == '__main__':
    sys.exit(unittest.main())
{%- endif %}

{'fraction_non_alphanumeric': 0.14929512364224637, 'fraction_numerical': 0.0036977120406748326, 'mean_word_length': 2.9742883379247016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4334908', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1320, 'n_words': 301}