Skip to content

Commit

Permalink
Removed python_version_test
Browse files Browse the repository at this point in the history
Co-authored-by: Sahil <sahilflash123@gmail.com>
  • Loading branch information
ozer550 and Sahil-101 committed Dec 18, 2021
1 parent 8a7a6f5 commit cfef574
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/test_cli.py
Expand Up @@ -57,18 +57,6 @@ def test_cli_version(cli_runner, version_cli_flag):
assert result.output.startswith('Cookiecutter')


def test_cli_version_python(cli_runner, version_cli_flag):
"""Verify correct Python version output by `cookiecutter` on cli invocation."""
result = cli_runner(version_cli_flag)
python_major_number = sys.version_info.major
python_minor_number = sys.version_info.minor
version_output_string = result.output[:-1]
version_output_string = version_output_string[-5:-1]
if version_output_string[0] == ' ':
version_output_string = version_output_string[1:]
assert f'{python_major_number}.{python_minor_number}' == version_output_string


@pytest.mark.usefixtures('make_fake_project_dir', 'remove_fake_project_dir')
def test_cli_error_on_existing_output_directory(cli_runner):
"""Test cli invocation without `overwrite-if-exists` fail if dir exist."""
Expand Down

0 comments on commit cfef574

Please sign in to comment.