File: __init__.py

package info (click to toggle)
python-georss-client 0.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: python: 1,582; xml: 430; makefile: 8; sh: 5
file content (18 lines) | stat: -rw-r--r-- 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Tests for georss-client library."""

from georss_client.feed import GeoRssFeed
from georss_client.feed_entry import FeedEntry
from georss_client.xml_parser.feed_item import FeedItem


class MockGeoRssFeed(GeoRssFeed):
    """Mock GeoRSS feed."""

    def _new_entry(
        self,
        home_coordinates: tuple[float, float],
        rss_entry: FeedItem,
        global_data: dict,
    ):
        """Generate a new entry."""
        return FeedEntry(home_coordinates, rss_entry)