def _generate_mock_feed_entry( external_id, title, distance_to_home, coordinates, place=None, attribution=None, time=None, updated=None, magnitude=None, status=None, entry_type=None, alert=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.place = place feed_entry.attribution = attribution feed_entry.time = time feed_entry.updated = updated feed_entry.magnitude = magnitude feed_entry.status = status feed_entry.type = entry_type feed_entry.alert = alert return feed_entry
def _generate_mock_feed_entry( external_id, title, distance_to_home, coordinates, category=None, location=None, attribution=None, publication_date=None, council_area=None, status=None, entry_type=None, fire=True, size=None, responsible_agency=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.category = category feed_entry.location = location feed_entry.attribution = attribution feed_entry.publication_date = publication_date feed_entry.council_area = council_area feed_entry.status = status feed_entry.type = entry_type feed_entry.fire = fire feed_entry.size = size feed_entry.responsible_agency = responsible_agency return feed_entry
def _generate_mock_feed_entry( external_id, title, distance_to_home, coordinates, attribution=None, depth=None, magnitude=None, mmi=None, locality=None, quality=None, time=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.attribution = attribution feed_entry.depth = depth feed_entry.magnitude = magnitude feed_entry.mmi = mmi feed_entry.locality = locality feed_entry.quality = quality feed_entry.time = time return feed_entry
def _generate_mock_feed_entry(external_id, title, distance_to_home, coordinates): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates return feed_entry
def _generate_mock_feed_entry( external_id, title, alert_level, distance_to_home, coordinates, attribution=None, activity=None, hazards=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.alert_level = alert_level feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.attribution = attribution feed_entry.activity = activity feed_entry.hazards = hazards return feed_entry
def _generate_mock_feed_entry( external_id, title, distance_to_home, coordinates, category=None, attribution=None, published=None, updated=None, status=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.category = category feed_entry.attribution = attribution feed_entry.published = published feed_entry.updated = updated feed_entry.status = status return feed_entry
def _generate_mock_feed_entry( external_id, title, distance_to_home, coordinates, region=None, attribution=None, published=None, magnitude=None, image_url=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.region = region feed_entry.attribution = attribution feed_entry.published = published feed_entry.magnitude = magnitude feed_entry.image_url = image_url return feed_entry
def _generate_mock_feed_entry( external_id, title, distance_to_home, coordinates, attribution=None, alert_level=None, country=None, duration_in_week=None, event_name=None, event_type_short=None, event_type=None, from_date=None, to_date=None, population=None, severity=None, vulnerability=None, ): """Construct a mock feed entry for testing purposes.""" feed_entry = MagicMock() feed_entry.external_id = external_id feed_entry.title = title feed_entry.distance_to_home = distance_to_home feed_entry.coordinates = coordinates feed_entry.attribution = attribution feed_entry.alert_level = alert_level feed_entry.country = country feed_entry.duration_in_week = duration_in_week feed_entry.event_name = event_name feed_entry.event_type_short = event_type_short feed_entry.event_type = event_type feed_entry.from_date = from_date feed_entry.to_date = to_date feed_entry.population = population feed_entry.severity = severity feed_entry.vulnerability = vulnerability return feed_entry