MCPcopy Index your code
hub / github.com/python/cpython / test_scm_ignore_files_git

Method test_scm_ignore_files_git

Lib/test/test_venv.py:786–794  ·  view source on GitHub ↗

Test that a .gitignore file is created when "git" is specified. The file should contain a `*\n` line.

(self)

Source from the content-addressed store, hash-verified

784
785 @requireVenvCreate
786 def test_scm_ignore_files_git(self):
787 """
788 Test that a .gitignore file is created when "git" is specified.
789 The file should contain a `*\n` line.
790 """
791 self.run_with_capture(venv.create, self.env_dir,
792 scm_ignore_files={'git'})
793 file_lines = self.get_text_file_contents('.gitignore').splitlines()
794 self.assertIn('*', file_lines)
795
796 @requireVenvCreate
797 def test_create_scm_ignore_files_multiple(self):

Callers

nothing calls this directly

Calls 4

run_with_captureMethod · 0.80
assertInMethod · 0.80
splitlinesMethod · 0.45

Tested by

no test coverage detected