File: helpers.py

package info (click to toggle)
pytest-django 4.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 604 kB
  • sloc: python: 4,006; makefile: 39; sh: 17
file content (16 lines) | stat: -rw-r--r-- 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from pathlib import Path

import pytest


class DjangoPytester(pytest.Pytester):  # type: ignore[misc]
    project_root: Path

    def create_test_module(  # type: ignore[empty-body]
        self,
        test_code: str,
        filename: str = ...,
    ) -> Path: ...

    def create_app_file(self, code: str, filename: str) -> Path:  # type: ignore[empty-body]
        ...