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

Method test_cli_with_scm_ignore_files

Lib/test/test_venv.py:834–841  ·  view source on GitHub ↗

Test that default SCM ignore files are created by default via the CLI.

(self)

Source from the content-addressed store, hash-verified

832
833 @requireVenvCreate
834 def test_cli_with_scm_ignore_files(self):
835 """
836 Test that default SCM ignore files are created by default via the CLI.
837 """
838 self.run_with_capture(venv.main, ['--without-pip', self.env_dir])
839
840 gitignore_lines = self.get_text_file_contents('.gitignore').splitlines()
841 self.assertIn('*', gitignore_lines)
842
843 @requireVenvCreate
844 def test_cli_without_scm_ignore_files(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