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

Method test_cli_without_scm_ignore_files

Lib/test/test_venv.py:842–850  ·  view source on GitHub ↗

Test that ``--without-scm-ignore-files`` doesn't create SCM ignore files.

(self)

Source from the content-addressed store, hash-verified

840
841 @requireVenvCreate
842 def test_cli_without_scm_ignore_files(self):
843 """
844 Test that ``--without-scm-ignore-files`` doesn't create SCM ignore files.
845 """
846 args = ['--without-pip', '--without-scm-ignore-files', self.env_dir]
847 self.run_with_capture(venv.main, args)
848
849 with self.assertRaises(FileNotFoundError):
850 self.get_text_file_contents('.gitignore')
851
852 def test_venv_same_path(self):
853 same_path = venv.EnvBuilder._same_path

Callers

nothing calls this directly

Calls 3

run_with_captureMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected