本文整理汇总了Python中student.models.LinkedInAddToProfileConfiguration.save方法的典型用法代码示例。如果您正苦于以下问题:Python LinkedInAddToProfileConfiguration.save方法的具体用法?Python LinkedInAddToProfileConfiguration.save怎么用?Python LinkedInAddToProfileConfiguration.save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类student.models.LinkedInAddToProfileConfiguration
的用法示例。
在下文中一共展示了LinkedInAddToProfileConfiguration.save方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_post_to_linkedin_microsite
# 需要导入模块: from student.models import LinkedInAddToProfileConfiguration [as 别名]
# 或者: from student.models.LinkedInAddToProfileConfiguration import save [as 别名]
def test_post_to_linkedin_microsite(self):
"""
Verifies behavior for microsites which disables the post to LinkedIn
feature (for now)
"""
self._create_certificate("honor")
config = LinkedInAddToProfileConfiguration(
company_identifier="0_mC_o2MizqdtZEmkVXjH4eYwMj4DnkCWrZP_D9", enabled=True
)
config.save()
# now we should not see it because we are in a microsite
self._check_linkedin_visibility(False)
示例2: test_post_to_linkedin_visibility
# 需要导入模块: from student.models import LinkedInAddToProfileConfiguration [as 别名]
# 或者: from student.models.LinkedInAddToProfileConfiguration import save [as 别名]
def test_post_to_linkedin_visibility(self):
"""
Verifies that the post certificate to linked button appears
as expected
"""
self._create_certificate("honor")
config = LinkedInAddToProfileConfiguration(
company_identifier="0_mC_o2MizqdtZEmkVXjH4eYwMj4DnkCWrZP_D9", enabled=True
)
config.save()
# now we should see it
self._check_linkedin_visibility(True)