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

Method test_cli_with_scm_ignore_files

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

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