Home / Function/ test_from_pyfile_weird_encoding() — flask Function Reference

test_from_pyfile_weird_encoding() — flask Function Reference

Architecture documentation for the test_from_pyfile_weird_encoding() function in test_config.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  2027853d_3a85_76dc_0dd3_fd61e5ec21c9["test_from_pyfile_weird_encoding()"]
  af09ffc0_0dff_d9d9_7274_4611c3d0d0e6["test_config.py"]
  2027853d_3a85_76dc_0dd3_fd61e5ec21c9 -->|defined in| af09ffc0_0dff_d9d9_7274_4611c3d0d0e6
  style 2027853d_3a85_76dc_0dd3_fd61e5ec21c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_config.py lines 244–250

def test_from_pyfile_weird_encoding(tmp_path, encoding):
    f = tmp_path / "my_config.py"
    f.write_text(f'# -*- coding: {encoding} -*-\nTEST_VALUE = "föö"\n', encoding)
    app = flask.Flask(__name__)
    app.config.from_pyfile(os.fspath(f))
    value = app.config["TEST_VALUE"]
    assert value == "föö"

Subdomains

Frequently Asked Questions

What does test_from_pyfile_weird_encoding() do?
test_from_pyfile_weird_encoding() is a function in the flask codebase, defined in tests/test_config.py.
Where is test_from_pyfile_weird_encoding() defined?
test_from_pyfile_weird_encoding() is defined in tests/test_config.py at line 244.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free