def mock_get_campaign(): campaign = Campaign() campaign.uuid = '111' campaign.name = 'test' campaign.total_participants_count = 3 campaign.campaign_creator = 'test_creator' campaign.campaign_managers = [ 'test_manager1', 'test_manager2', 'test_creator' ] campaign._content_json = {'name': campaign.name, 'uuid': campaign.uuid} return [campaign]
def mock_get_campaign(): campaign = Campaign() campaign.uuid = '111' campaign.name = 'test' campaign.total_participants_count = 3 campaign.campaign_creator = 'test_creator' campaign.campaign_managers = [{ 'name': 'test_manager1', 'osm_id': '12345' }, { 'name': 'test_manager2', 'osm_id': '54321' }, { 'name': 'test_creator', 'osm_id': '98765' }] campaign._content_json = {'name': campaign.name, 'uuid': campaign.uuid} return [campaign]
def mock_get_campaigns_with_tag(tag): campaign = Campaign() campaign.uuid = '111' campaign.name = 'test' campaign._content_json = {'name': campaign.name, 'uuid': campaign.uuid} return [campaign]
def mock_get_nearest_campaign(coordinate): campaign = Campaign() campaign.uuid = '111' campaign.name = 'test' campaign._content_json = {'name': campaign.name, 'uuid': campaign.uuid} return [campaign]