def test_libnx_without_clion(): runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke( cli, ["-n", APP_NAME, "-a", APP_AUTHOR, "libnx", "--no-clion"]) assert not result.exception assert result.output.endswith( "Successfully created the libnx project!\n") assert directory_exists(os.path.join(DIRECTORY_NAME, "data")) assert directory_exists(os.path.join(DIRECTORY_NAME, "includes")) assert not file_exists("CMakeLists.txt") assert readme_has_project_and_author_name() assert makefile_has_project_and_author_name() assert main_cpp_has_valid_data()
def test_pynx(): runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke(cli, ["-n", APP_NAME, "-a", APP_AUTHOR, "pynx"]) assert not result.exception assert result.output.endswith( "Successfully created the PyNX project!\n") assert directory_exists(DIRECTORY_NAME) assert file_contains_strings("main.py", [APP_NAME, APP_AUTHOR, DATE_CREATED]) assert readme_has_project_and_author_name()
def test_brewjs(): runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke(cli, ["-n", APP_NAME, "-a", APP_AUTHOR, "brewjs"]) assert not result.exception assert result.output.endswith( "Successfully created the BrewJS project!\n") assert directory_exists(os.path.join(DIRECTORY_NAME, "assets")) assert file_contains_strings("Source.js", [APP_NAME, APP_AUTHOR, DATE_CREATED]) assert file_contains_strings("package.json", [APP_NAME, APP_AUTHOR])
def test_libt_with_clion(): runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke( cli, ["-n", APP_NAME, "-a", APP_AUTHOR, "libt", "--clion"]) assert not result.exception assert result.output.endswith( "Successfully created the libtransistor project!\n") assert directory_exists(DIRECTORY_NAME) assert file_exists("CMakeLists.txt") assert readme_has_project_and_author_name() assert makefile_has_project_and_author_name() assert main_c_has_valid_data()