File: utils.py

package info (click to toggle)
python-aio-georss-gdacs 0.9%2Bdfsg1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 236 kB
  • sloc: xml: 727; python: 524; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
"""Test utilities."""
import os


def load_fixture(filename):
    """Load a fixture."""
    path = os.path.join(os.path.dirname(__file__), "fixtures", filename)
    with open(path, encoding="utf-8") as fptr:
        return fptr.read()