File: conftest.py

package info (click to toggle)
sphinxcontrib-openapi 0.8.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 876 kB
  • sloc: python: 7,575; makefile: 15
file content (12 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import textwrap

import pytest
import yaml


@pytest.fixture(scope="function")
def oas_fragment():
    def oas_fragment(fragment):
        return yaml.safe_load(textwrap.dedent(fragment))

    return oas_fragment