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(config) cmd.run(Namespace(name="my-charm", author=author, force=False)) paths = get_python_filepaths( roots=[str(tmp_path / "src"), str(tmp_path / "tests")], python_paths=[] ) pep8_test(paths)
def test_init_pep257(tmp_path, config): cmd = InitCommand("group", config) cmd.run( Namespace(name="my-charm", author="J Doe", series="k8s", force=False)) paths = get_python_filepaths(roots=[str(tmp_path / "src")], python_paths=[]) pep257_test(paths)
def test_init_pep257(tmp_path, config): cmd = InitCommand('group', config) cmd.run(Namespace(name='my-charm', author='J Doe', series='k8s', force=False)) paths = get_python_filepaths(roots=[str(tmp_path / "src")], python_paths=[]) pep257_test(paths)