File: utils.py

package info (click to toggle)
python-aio-geojson-nsw-rfs-incidents 0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 180 kB
  • sloc: python: 390; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (8)
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()