def test_init_pep8(tmp_path, *, author="J Doe"): cmd = InitCommand('group') cmd.run(Namespace(path=tmp_path, name='my-charm', author=author)) paths = get_python_filepaths( roots=[str(tmp_path / "src"), str(tmp_path / "tests")], python_paths=[]) pep8_test(paths)
def test_init_pep8(tmp_path, config, *, author="J Doe"): cmd = InitCommand("group", config) cmd.run(Namespace(name="my-charm", author=author, series="k8s", force=False)) paths = get_python_filepaths( roots=[str(tmp_path / "src"), str(tmp_path / "tests")], python_paths=[] ) pep8_test(paths)