Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
553 B
3
Indexable
Never
        with patch.object(EventNotifyAvailConfig, "send_message", return_value=None) as send_message:
            obj.send('noc@resy.com')
            data = send_message.call_args[0][2]

            subject = obj.subject(data)
            venue_info = tinyAPI.dsh().one(
                "SELECT name FROM venue_info WHERE id = %s", [1])
            venue_name = venue_info.get("name")
            event_name = 'Resy Presents: Super Cool Event'
            assert f"The tickets you requested for {event_name} at {venue_name} may be available" == subject