def test_build_version_missing_package_name(self, pkg):
setattr(settings, 'HEARTBEAT', pkg)
with pytest.raises(ImproperlyConfigured) as e:
build.check(request=None)
msg = 'Missing package_name key from heartbeat configuration'
assert msg in str(e)
评论列表
文章目录