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

Method test_create_scm_ignore_files_empty

Lib/test/test_venv.py:818–829  ·  view source on GitHub ↗

Test that no default ignore files are created when ``scm_ignore_files`` is empty.

(self)

Source from the content-addressed store, hash-verified

816
817 @requireVenvCreate
818 def test_create_scm_ignore_files_empty(self):
819 """
820 Test that no default ignore files are created when ``scm_ignore_files``
821 is empty.
822 """
823 # scm_ignore_files is set to frozenset() by default.
824 self.run_with_capture(venv.create, self.env_dir)
825 with self.assertRaises(FileNotFoundError):
826 self.get_text_file_contents('.gitignore')
827
828 self.assertIn("--without-scm-ignore-files",
829 self.get_text_file_contents('pyvenv.cfg'))
830
831 @requireVenvCreate
832 def test_cli_with_scm_ignore_files(self):

Callers

nothing calls this directly

Calls 4

run_with_captureMethod · 0.80
assertInMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected