def test_build_creator_url_nones_missing_owner(): image_data = _get_resource_json('image_data_long_tags_string.json') actual_url = flickr._build_creator_url( image_data, photo_url_base='https://photo.com' ) assert actual_url is None
def test_build_creator_url_finds_owner(): image_data = _get_resource_json('image_data_complete_example.json') actual_url = flickr._build_creator_url( image_data, photo_url_base='https://photo.com' ) expect_url = 'https://photo.com/71925535@N03' assert actual_url == expect_url