FakePath Class — flask Architecture
Architecture documentation for the FakePath class in test_helpers.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD b293a82f_5876_62ed_6c26_83e03c30fbd1["FakePath"] d5d22f74_a243_4ea9_9dfe_aaec71d26288["test_helpers.py"] b293a82f_5876_62ed_6c26_83e03c30fbd1 -->|defined in| d5d22f74_a243_4ea9_9dfe_aaec71d26288 973cfe06_f0b9_961f_b817_6c165edaf024["__init__()"] b293a82f_5876_62ed_6c26_83e03c30fbd1 -->|method| 973cfe06_f0b9_961f_b817_6c165edaf024 982bccef_0330_2cca_0bf8_9bb1e06dd89f["__fspath__()"] b293a82f_5876_62ed_6c26_83e03c30fbd1 -->|method| 982bccef_0330_2cca_0bf8_9bb1e06dd89f
Relationship Graph
Source Code
tests/test_helpers.py lines 11–22
class FakePath:
"""Fake object to represent a ``PathLike object``.
This represents a ``pathlib.Path`` object in python 3.
See: https://www.python.org/dev/peps/pep-0519/
"""
def __init__(self, path):
self.path = path
def __fspath__(self):
return self.path
Defined In
Source
Frequently Asked Questions
What is the FakePath class?
FakePath is a class in the flask codebase, defined in tests/test_helpers.py.
Where is FakePath defined?
FakePath is defined in tests/test_helpers.py at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free