File: conftest.py

package info (click to toggle)
pytoolconfig 1.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: python: 846; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Setup pytest items."""
from __future__ import annotations

from pathlib import Path

import pytest


@pytest.fixture()
def cwd() -> Path:
    """Changes initial working directory for further tests.

    Returns:
    -------
        The directory with config files.

    """
    return Path(__file__).parent / "configfiles"