Created
August 9, 2021 00:18
-
-
Save mkell43/2753abc0ec5884fef1532dd1bff11e53 to your computer and use it in GitHub Desktop.
Pytest Cookies Errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tests/test_bake_project.py::test_year_compute_in_license_file FAILED [ 7%] | |
tests/test_bake_project.py::test_bake_with_defaults FAILED [ 15%] | |
tests/test_bake_project.py::test_bake_without_author_file FAILED [ 23%] | |
tests/test_bake_project.py::test_bake_selecting_license[license_info0] FAILED [ 30%] | |
tests/test_bake_project.py::test_bake_selecting_license[license_info1] FAILED [ 38%] | |
tests/test_bake_project.py::test_bake_selecting_license[license_info2] FAILED [ 46%] | |
tests/test_bake_project.py::test_bake_selecting_license[license_info3] FAILED [ 53%] | |
tests/test_bake_project.py::test_bake_selecting_license[license_info4] FAILED [ 61%] | |
tests/test_bake_project.py::test_bake_not_open_source FAILED [ 69%] | |
tests/test_bake_project.py::test_not_using_pytest FAILED [ 76%] | |
tests/test_bake_project.py::test_docstrings_style FAILED [ 84%] | |
tests/test_bake_project.py::test_bake_with_no_console_script[args0] PASSED [ 92%] | |
tests/test_bake_project.py::test_bake_with_no_console_script[args1] PASSED [100%] | |
======================================================================== FAILURES ======================================================================== | |
___________________________________________________________ test_year_compute_in_license_file ____________________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feadebcdbb0> | |
def test_year_compute_in_license_file(cookies): | |
with bake_in_temp_dir(cookies) as result: | |
> license_file_path = result.project_path.join("LICENSE") | |
E AttributeError: 'PosixPath' object has no attribute 'join' | |
tests/test_bake_project.py:95: AttributeError | |
________________________________________________________________ test_bake_with_defaults _________________________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade5ed1c0> | |
def test_bake_with_defaults(cookies): | |
with bake_in_temp_dir(cookies) as result: | |
> assert result.project_path.isdir() | |
E AttributeError: 'PosixPath' object has no attribute 'isdir' | |
tests/test_bake_project.py:110: AttributeError | |
_____________________________________________________________ test_bake_without_author_file ______________________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade698520> | |
def test_bake_without_author_file(cookies): | |
with bake_in_temp_dir(cookies, extra_context={"create_author_file": "n"}) as result: | |
> found_toplevel_files = [f.basename for f in result.project_path.listdir()] | |
E AttributeError: 'PosixPath' object has no attribute 'listdir' | |
tests/test_bake_project.py:128: AttributeError | |
_______________________________________________________ test_bake_selecting_license[license_info0] _______________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade6564f0>, license_info = ('MIT', 'MIT ') | |
@pytest.mark.parametrize( | |
"license_info", | |
[ | |
("MIT", "MIT "), | |
("BSD-3-Clause", "Redistributions of source code must retain the " + "above copyright notice, this"), | |
("ISC", "ISC License"), | |
("Apache-2.0", "Licensed under the Apache License, Version 2.0"), | |
("GPL-3.0-only", "GNU GENERAL PUBLIC LICENSE"), | |
], | |
) | |
def test_bake_selecting_license(cookies, license_info): | |
license, target_string = license_info | |
with bake_in_temp_dir(cookies, extra_context={"open_source_license": license}) as result: | |
> assert target_string in result.project_path.join("LICENSE").read() | |
E AttributeError: 'PosixPath' object has no attribute 'join' | |
tests/test_bake_project.py:153: AttributeError | |
_______________________________________________________ test_bake_selecting_license[license_info1] _______________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade5bddf0> | |
license_info = ('BSD-3-Clause', 'Redistributions of source code must retain the above copyright notice, this') | |
@pytest.mark.parametrize( | |
"license_info", | |
[ | |
("MIT", "MIT "), | |
("BSD-3-Clause", "Redistributions of source code must retain the " + "above copyright notice, this"), | |
("ISC", "ISC License"), | |
("Apache-2.0", "Licensed under the Apache License, Version 2.0"), | |
("GPL-3.0-only", "GNU GENERAL PUBLIC LICENSE"), | |
], | |
) | |
def test_bake_selecting_license(cookies, license_info): | |
license, target_string = license_info | |
with bake_in_temp_dir(cookies, extra_context={"open_source_license": license}) as result: | |
> assert target_string in result.project_path.join("LICENSE").read() | |
E AttributeError: 'PosixPath' object has no attribute 'join' | |
tests/test_bake_project.py:153: AttributeError | |
_______________________________________________________ test_bake_selecting_license[license_info2] _______________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade5c00d0>, license_info = ('ISC', 'ISC License') | |
@pytest.mark.parametrize( | |
"license_info", | |
[ | |
("MIT", "MIT "), | |
("BSD-3-Clause", "Redistributions of source code must retain the " + "above copyright notice, this"), | |
("ISC", "ISC License"), | |
("Apache-2.0", "Licensed under the Apache License, Version 2.0"), | |
("GPL-3.0-only", "GNU GENERAL PUBLIC LICENSE"), | |
], | |
) | |
def test_bake_selecting_license(cookies, license_info): | |
license, target_string = license_info | |
with bake_in_temp_dir(cookies, extra_context={"open_source_license": license}) as result: | |
> assert target_string in result.project_path.join("LICENSE").read() | |
E AttributeError: 'PosixPath' object has no attribute 'join' | |
tests/test_bake_project.py:153: AttributeError | |
_______________________________________________________ test_bake_selecting_license[license_info3] _______________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade64d430>, license_info = ('Apache-2.0', 'Licensed under the Apache License, Version 2.0') | |
@pytest.mark.parametrize( | |
"license_info", | |
[ | |
("MIT", "MIT "), | |
("BSD-3-Clause", "Redistributions of source code must retain the " + "above copyright notice, this"), | |
("ISC", "ISC License"), | |
("Apache-2.0", "Licensed under the Apache License, Version 2.0"), | |
("GPL-3.0-only", "GNU GENERAL PUBLIC LICENSE"), | |
], | |
) | |
def test_bake_selecting_license(cookies, license_info): | |
license, target_string = license_info | |
with bake_in_temp_dir(cookies, extra_context={"open_source_license": license}) as result: | |
> assert target_string in result.project_path.join("LICENSE").read() | |
E AttributeError: 'PosixPath' object has no attribute 'join' | |
tests/test_bake_project.py:153: AttributeError | |
_______________________________________________________ test_bake_selecting_license[license_info4] _______________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade5a3fa0>, license_info = ('GPL-3.0-only', 'GNU GENERAL PUBLIC LICENSE') | |
@pytest.mark.parametrize( | |
"license_info", | |
[ | |
("MIT", "MIT "), | |
("BSD-3-Clause", "Redistributions of source code must retain the " + "above copyright notice, this"), | |
("ISC", "ISC License"), | |
("Apache-2.0", "Licensed under the Apache License, Version 2.0"), | |
("GPL-3.0-only", "GNU GENERAL PUBLIC LICENSE"), | |
], | |
) | |
def test_bake_selecting_license(cookies, license_info): | |
license, target_string = license_info | |
with bake_in_temp_dir(cookies, extra_context={"open_source_license": license}) as result: | |
> assert target_string in result.project_path.join("LICENSE").read() | |
E AttributeError: 'PosixPath' object has no attribute 'join' | |
tests/test_bake_project.py:153: AttributeError | |
_______________________________________________________________ test_bake_not_open_source ________________________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade5c0cd0> | |
def test_bake_not_open_source(cookies): | |
with bake_in_temp_dir(cookies, extra_context={"open_source_license": "Not open source"}) as result: | |
> found_toplevel_files = [f.basename for f in result.project_path.listdir()] | |
E AttributeError: 'PosixPath' object has no attribute 'listdir' | |
tests/test_bake_project.py:159: AttributeError | |
_________________________________________________________________ test_not_using_pytest __________________________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade642d60> | |
def test_not_using_pytest(cookies): | |
with bake_in_temp_dir(cookies, extra_context={"use_pytest": "n"}) as result: | |
> assert result.project_path.isdir() | |
E AttributeError: 'PosixPath' object has no attribute 'isdir' | |
tests/test_bake_project.py:168: AttributeError | |
_________________________________________________________________ test_docstrings_style __________________________________________________________________ | |
cookies = <pytest_cookies.plugin.Cookies object at 0x7feade57c670> | |
def test_docstrings_style(cookies): | |
with bake_in_temp_dir(cookies, extra_context={"docstrings_style": "google"}) as result: | |
> assert result.project_path.isdir() | |
E AttributeError: 'PosixPath' object has no attribute 'isdir' | |
tests/test_bake_project.py:182: AttributeError | |
================================================================ short test summary info ================================================================= | |
FAILED tests/test_bake_project.py::test_year_compute_in_license_file - AttributeError: 'PosixPath' object has no attribute 'join' | |
FAILED tests/test_bake_project.py::test_bake_with_defaults - AttributeError: 'PosixPath' object has no attribute 'isdir' | |
FAILED tests/test_bake_project.py::test_bake_without_author_file - AttributeError: 'PosixPath' object has no attribute 'listdir' | |
FAILED tests/test_bake_project.py::test_bake_selecting_license[license_info0] - AttributeError: 'PosixPath' object has no attribute 'join' | |
FAILED tests/test_bake_project.py::test_bake_selecting_license[license_info1] - AttributeError: 'PosixPath' object has no attribute 'join' | |
FAILED tests/test_bake_project.py::test_bake_selecting_license[license_info2] - AttributeError: 'PosixPath' object has no attribute 'join' | |
FAILED tests/test_bake_project.py::test_bake_selecting_license[license_info3] - AttributeError: 'PosixPath' object has no attribute 'join' | |
FAILED tests/test_bake_project.py::test_bake_selecting_license[license_info4] - AttributeError: 'PosixPath' object has no attribute 'join' | |
FAILED tests/test_bake_project.py::test_bake_not_open_source - AttributeError: 'PosixPath' object has no attribute 'listdir' | |
FAILED tests/test_bake_project.py::test_not_using_pytest - AttributeError: 'PosixPath' object has no attribute 'isdir' | |
FAILED tests/test_bake_project.py::test_docstrings_style - AttributeError: 'PosixPath' object has no attribute 'isdir' | |
============================================================= 11 failed, 2 passed in 12.01s ============================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment