Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/copier-org/copier
/ functions
Functions
643 in github.com/copier-org/copier
⨍
Functions
643
◇
Types & classes
57
↳
Endpoints
9
Function
test_include_file
(tmp_path: Path)
tests/test_copy.py:260
Function
test_include_path_must_be_relative
Include path must not be a relative path.
tests/test_config.py:272
Function
test_include_pattern
(tmp_path: Path)
tests/test_copy.py:265
Function
test_include_value_must_be_scalar_node
Include value must be a YAML scalar node.
tests/test_config.py:291
Function
test_interactive_session_required_for_overwrite_prompt
Overwriting a file without `--overwrite` flag requires an interactive session.
tests/test_prompt.py:1184
Function
test_interactive_session_required_for_question_prompt
Answering a question prompt requires an interactive session.
tests/test_prompt.py:1162
Function
test_invalid_config_data
( capsys: pytest.CaptureFixture[str], conf_path: str, check_err: Callable[[str], bool] | None, )
tests/test_config.py:174
Function
test_invalid_jinja_in_nested_rendered_path_reports_failing_path_part
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_copy.py:1352
Function
test_invalid_jinja_in_rendered_path_reports_template_path
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_copy.py:1341
Function
test_invalid_value
(tmp_path_factory: pytest.TempPathFactory)
tests/test_jinja2_undefined.py:24
Function
test_invalid_version
(tmp_path: Path)
tests/test_vcs.py:315
Function
test_invalid_yaml
(capsys: pytest.CaptureFixture[str])
tests/test_config.py:155
Function
test_is_git_repo_root_worktree
is_git_repo_root should return True for git worktrees where .git is a file.
tests/test_vcs.py:359
Function
test_is_remote
()
tests/test_vcs.py:118
Function
test_is_trusted
(repository: str, trust: Sequence[str], expected: bool)
tests/test_settings.py:265
Function
test_is_trusted
(repository: str, trust: set[str], is_trusted: bool)
tests/test_settings_deprecated.py:142
Function
test_keyboard_interrupt
( tmp_path_factory: pytest.TempPathFactory, side_effect: KeyboardInterrupt )
tests/test_interrupts.py:21
Function
test_load_settings_env_defined_but_missing
( settings_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_settings.py:83
Function
test_load_settings_from_default_location
(settings_path: Path)
tests/test_settings.py:24
Function
test_load_settings_from_default_location_dont_exist
()
tests/test_settings.py:44
Function
test_load_settings_from_param
( settings_path: Path, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_settings.py:65
Function
test_load_settings_from_utf_file
( settings_path: Path, monkeypatch: pytest.MonkeyPatch, encoding: str )
tests/test_settings.py:96
Function
test_load_settings_with_invalid_data
( settings_path: Path, data: bytes, error: str )
tests/test_settings.py:138
Function
test_local_clone
()
tests/test_vcs.py:90
Function
test_local_dirty_clone
When core.fsmonitor is enabled, normal `git checkout` command won't works.
tests/test_vcs.py:208
Function
test_messages_quiet
( tmp_path_factory: pytest.TempPathFactory, capsys: pytest.CaptureFixture[str], spawn: Spawn,
tests/test_output.py:354
Function
test_messages_with_included_text
( tmp_path_factory: pytest.TempPathFactory, capsys: pytest.CaptureFixture[str], spawn: Spawn,
tests/test_output.py:214
Function
test_messages_with_inline_text
( tmp_path_factory: pytest.TempPathFactory, capsys: pytest.CaptureFixture[str], spawn: Spawn,
tests/test_output.py:95
Function
test_migration_condition
Test the `when` argument of migrations
tests/test_migrations.py:274
Function
test_migration_env_variables
Test that environment variables are passed to the migration commands
tests/test_migrations.py:460
Function
test_migration_jinja_variables
Test that environment variables are passed to the migration commands
tests/test_migrations.py:517
Function
test_migration_run_after
Test running migrations in the before upgrade step Also checks that this is the default behaviour if no `when` is given.
tests/test_migrations.py:420
Function
test_migration_run_before
Test running migrations in the before upgrade step
tests/test_migrations.py:370
Function
test_migration_working_directory
Test the working directory attribute of migrations
tests/test_migrations.py:240
Function
test_migrations_and_tasks
Check migrations and tasks are run properly.
tests/test_legacy_migration.py:29
Function
test_minimum_version_update
( template_path: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/test_minimum_version.py:59
Function
test_mirror_path_ignores_credentials
()
tests/test_vcs.py:128
Function
test_missing_template
(tmp_path: Path)
tests/test_config.py:344
Function
test_multi_template_answers
(tmp_path_factory: pytest.TempPathFactory)
tests/test_complex_questions.py:540
Function
test_multiline
( tmp_path_factory: pytest.TempPathFactory, spawn: Spawn, type_: str )
tests/test_prompt.py:571
Function
test_multiline_defaults
Multiline questions with scalar defaults produce multiline defaults.
tests/test_prompt.py:700
Function
test_multiple_config_file_error
()
tests/test_config.py:313
Function
test_multiple_questions_interrupt
(tmp_path_factory: pytest.TempPathFactory)
tests/test_interrupts.py:42
Function
test_multiselect_choices_preserve_order
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_copy.py:1075
Function
test_multiselect_choices_question_multiple_answers
( question_tree: QuestionTreeFixture, copier: CopierFixture, type_name: QuestionType, choices:
tests/test_prompt.py:1028
Function
test_multiselect_choices_question_single_answer
( question_tree: QuestionTreeFixture, copier: CopierFixture, type_name: QuestionType, choices:
tests/test_prompt.py:1010
Function
test_multiselect_choices_question_with_default
( question_tree: QuestionTreeFixture, copier: CopierFixture, type_name: QuestionType, choices:
tests/test_prompt.py:1048
Function
test_multiselect_choices_validator
Multiple choices are validated.
tests/test_prompt.py:1110
Function
test_multiselect_choices_with_templated_default_value
( tmp_path_factory: pytest.TempPathFactory, spec: str, expected: Any )
tests/test_copy.py:1319
Function
test_multiselect_choices_with_templated_default_value
( tmp_path_factory: pytest.TempPathFactory, spawn: Spawn, )
tests/test_templated_prompt.py:499
Function
test_nested_folder_loop
(tmp_path_factory: pytest.TempPathFactory)
tests/test_dynamic_file_structures.py:75
Function
test_new_version_changes_subdirectory
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_subdirectory.py:277
Function
test_new_version_uses_subdirectory
( tmp_path_factory: pytest.TempPathFactory, conflict: Literal["rej", "inline"], readme: str, e
tests/test_subdirectory.py:204
Function
test_no_cleanup_when_folder_existed
Copier will not delete a folder if it didn't create it.
tests/test_cleanup.py:34
Function
test_no_cleanup_when_template_in_parent_folder
Copier will not delete a local template in a parent folder.
tests/test_cleanup.py:50
Function
test_no_path_variables
Test that there are no context variables of type `pathlib.Path`.
tests/test_context.py:14
Function
test_normal_jinja2
(tmp_path_factory: pytest.TempPathFactory)
tests/test_normal_jinja2.py:10
Function
test_normalizing_git_paths
(path: str, normalized: str)
tests/test_tools.py:84
Function
test_omit_answer_for_skipped_question
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_complex_questions.py:583
Function
test_option_preserve_symlinks_default
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_symlinks.py:195
Function
test_option_preserve_symlinks_false
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_symlinks.py:160
Function
test_os_specific_tasks
( tmp_path_factory: pytest.TempPathFactory, monkeypatch: pytest.MonkeyPatch, os: Literal["linux",
tests/test_tasks.py:160
Function
test_output
(capsys: pytest.CaptureFixture[str], tmp_path: Path)
tests/test_output.py:14
Function
test_output_force
(capsys: pytest.CaptureFixture[str], tmp_path: Path)
tests/test_output.py:30
Function
test_output_pretend
(capsys: pytest.CaptureFixture[str], tmp_path: Path)
tests/test_output.py:22
Function
test_output_quiet
(capsys: pytest.CaptureFixture[str], tmp_path: Path)
tests/test_output.py:52
Function
test_output_skip
(capsys: pytest.CaptureFixture[str], tmp_path: Path)
tests/test_output.py:41
Function
test_overwrite_answers_file_always
( tmp_path_factory: pytest.TempPathFactory, answers_file: str | None )
tests/test_updatediff.py:863
Function
test_parallel_projects_in_subdirs
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_dirty_local.py:256
Function
test_partial_interrupt
( tmp_path_factory: pytest.TempPathFactory, spawn: Spawn, )
tests/test_prompt.py:764
Function
test_path_completion
Test that file paths can handle tab completion.
tests/test_prompt.py:177
Function
test_path_filter
(tmp_path_factory: pytest.TempPathFactory)
tests/test_exclude.py:62
Function
test_placeholder
(tmp_path_factory: pytest.TempPathFactory, spawn: Spawn)
tests/test_prompt.py:448
Function
test_post_checkout_hook_ignored
Ignore post-checkout hook when conflicts are encountered.
tests/test_updatediff.py:494
Function
test_post_migration_by_default
Test a basic migration running on every version
tests/test_migrations.py:66
Function
test_pre_migration_modifies_answers
Test support for answers modifications in pre-migrations.
tests/test_legacy_migration.py:95
Function
test_prerelease_version_migration
Test if prerelease version migrations work
tests/test_migrations.py:176
Function
test_prereleases
Test prereleases support for copying and updating.
tests/test_legacy_migration.py:173
Function
test_preserved_permissions
( tmp_path_factory: pytest.TempPathFactory, permissions: int )
tests/test_copy.py:443
Function
test_pretend_migration
Test that migrations aren't run in pretend mode
tests/test_migrations.py:308
Function
test_pretend_mode
(tmp_path_factory: pytest.TempPathFactory)
tests/test_legacy_migration.py:263
Function
test_pretend_mode
(tmp_path_factory: pytest.TempPathFactory)
tests/test_tasks.py:135
Function
test_pretend_option
(tmp_path: Path)
tests/test_copy.py:379
Function
test_pretend_symlink
(tmp_path_factory: pytest.TempPathFactory)
tests/test_symlinks.py:374
Function
test_project_not_found
(tmp_path: Path)
tests/test_copy.py:40
Function
test_python_run
()
tests/test_cli.py:559
Function
test_qmark
Test that custom qmark parameter is displayed for questions.
tests/test_prompt.py:485
Function
test_qmark_default
Test that default qmark emojis are used when qmark is not specified.
tests/test_prompt.py:529
Function
test_question_with_invalid_type
(tmp_path_factory: pytest.TempPathFactory)
tests/test_output.py:59
Function
test_raise_multiple_yield_tags
(tmp_path_factory: pytest.TempPathFactory)
tests/test_dynamic_file_structures.py:236
Function
test_raise_yield_tag_in_file
(tmp_path_factory: pytest.TempPathFactory)
tests/test_dynamic_file_structures.py:214
Function
test_read_data
( tmp_path_factory: pytest.TempPathFactory, config_suffix: str )
tests/test_config.py:57
Function
test_read_utf_data_file
( tmp_path_factory: pytest.TempPathFactory, monkeypatch: pytest.MonkeyPatch, data_file_encoding: s
tests/test_cli.py:236
Function
test_recopy_discards_evolution_api
(tpl: str, tmp_path: Path)
tests/test_recopy.py:31
Function
test_recopy_discards_evolution_cli
(tpl: str, tmp_path: Path)
tests/test_recopy.py:45
Function
test_recopy_dont_validate_computed_value
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_recopy.py:103
Function
test_recopy_with_skip_answered_and_new_answer
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_recopy.py:79
Function
test_recopy_works_without_replay
(tpl: str, tmp_path: Path)
tests/test_recopy.py:61
Function
test_recursive_symlink
(tmp_path_factory: pytest.TempPathFactory)
tests/test_symlinks.py:440
Function
test_relative_render_path_outside_destination_raises_error
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_copy.py:1366
← previous
next →
401–500 of 643, ranked by callers