MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_scm_ignore_files_git

Method test_scm_ignore_files_git

Lib/test/test_venv.py:784–792  ·  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

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