File: tmp_path_fixture.py

package info (click to toggle)
pytest 9.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,308 kB
  • sloc: python: 65,808; makefile: 45
file content (10 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# mypy: allow-untyped-defs
from __future__ import annotations

import pytest


@pytest.mark.parametrize("a", [r"qwe/\abc"])
def test_fixture(tmp_path, a):
    assert tmp_path.is_dir()
    assert list(tmp_path.iterdir()) == []