Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/copier-org/copier
/ functions
Functions
662 in github.com/copier-org/copier
⨍
Functions
662
◇
Types & classes
60
↳
Endpoints
11
Function
test_folder_loop_dict_items
(tmp_path_factory: pytest.TempPathFactory)
tests/test_dynamic_file_structures.py:154
Function
test_folder_loop_reports_path_when_yielded_part_rendering_fails
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_dynamic_file_structures.py:46
Function
test_force_option
(tmp_path: Path)
tests/test_copy.py:370
Function
test_get_git_version
(git_version_output: str, expected_version: Version)
tests/test_vcs.py:465
Function
test_get_repo
()
tests/test_vcs.py:30
Function
test_get_repo_worktree
get_repo should recognise a git worktree as a valid local repo.
tests/test_vcs.py:443
Function
test_gitignore_file_unignored
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_updatediff.py:1892
Function
test_good_cli_run
(template_path: str, tmp_path: Path)
tests/test_cli.py:58
Function
test_good_cli_run_dot_config
Function to test different locations of the answersfile. Added based on the discussion: https://github.com/copier-org/copier/discussions/859
tests/test_cli.py:306
Function
test_help
()
tests/test_cli.py:377
Function
test_import_macro
( tmp_path_factory: pytest.TempPathFactory, subdir: str, settings: AnyByStrDict )
tests/test_imports.py:137
Function
test_include
( tmp_path_factory: pytest.TempPathFactory, subdir: str, settings: AnyByStrDict )
tests/test_imports.py:31
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:328
Function
test_include_path_outside_template_root_raises_error
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_config.py:363
Function
test_include_pattern
(tmp_path: Path)
tests/test_copy.py:265
Function
test_include_resolves_symlink_inside_template
( tmp_path_factory: pytest.TempPathFactory, )
tests/test_imports.py:104
Function
test_include_resolves_symlink_outside_template_root_raises_error
( tmp_path_factory: pytest.TempPathFactory, absolute: bool )
tests/test_imports.py:83
Function
test_include_value_must_be_scalar_node
Include value must be a YAML scalar node.
tests/test_config.py:347
Function
test_interactive_session_required_for_overwrite_prompt
Overwriting a file without `--overwrite` flag requires an interactive session.
tests/test_prompt.py:1185
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:230
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:380
Function
test_invalid_yaml
(capsys: pytest.CaptureFixture[str])
tests/test_config.py:160
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:424
Function
test_is_remote
()
tests/test_vcs.py:118
Function
test_is_trusted
(repository: str, trust: Sequence[str], expected: bool)
tests/test_settings.py:275
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:273
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:273
Function
test_migration_env_variables
Test that environment variables are passed to the migration commands
tests/test_migrations.py:459
Function
test_migration_jinja_variables
Test that environment variables are passed to the migration commands
tests/test_migrations.py:516
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:419
Function
test_migration_run_before
Test running migrations in the before upgrade step
tests/test_migrations.py:369
Function
test_migration_working_directory
Test the working directory attribute of migrations
tests/test_migrations.py:239
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:421
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:390
Function
test_multiple_questions_interrupt
(tmp_path_factory: pytest.TempPathFactory)
tests/test_interrupts.py:44
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:35
Function
test_no_cleanup_when_template_in_parent_folder
Copier will not delete a local template in a parent folder.
tests/test_cleanup.py:51
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:105
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:175
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:307
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
← previous
next →
401–500 of 662, ranked by callers