MCPcopy Create free account
hub / github.com/PyCQA/flake8 / test_stdin_filename_attribute

Function test_stdin_filename_attribute

tests/unit/test_file_processor.py:108–112  ·  view source on GitHub ↗

Verify that we update the filename attribute.

(stdin_get_value, default_options)

Source from the content-addressed store, hash-verified

106
107@mock.patch("flake8.utils.stdin_get_value")
108def test_stdin_filename_attribute(stdin_get_value, default_options):
109 """Verify that we update the filename attribute."""
110 stdin_get_value.return_value = ""
111 file_processor = processor.FileProcessor("-", default_options)
112 assert file_processor.filename == "stdin"
113
114
115@mock.patch("flake8.utils.stdin_get_value")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected