| 8 | with pytest.deprecated_call(): |
| 9 | |
| 10 | class MockView(View): |
| 11 | def __init__(self, name: str = "mock"): |
| 12 | self._name = name |
| 13 | self.syntax_highlight = "python" |
| 14 | |
| 15 | def __call__(self, data, content_type=None, flow=None, http_message=None): |
| 16 | return "description", [[("text", "content")]] |
| 17 | |
| 18 | @property |
| 19 | def name(self) -> str: |
| 20 | return self._name |
| 21 | |
| 22 | def render_priority( |
| 23 | self, data, content_type=None, flow=None, http_message=None |
| 24 | ): |
| 25 | return 1.0 |
| 26 | |
| 27 | |
| 28 | def test_legacy_contentview(): |
no outgoing calls
searching dependent graphs…