nteract/testbook

Replace all tb.ref examples in docs with tb.get

开放

#117 创建于 2021年5月22日

 (2 条评论) (0 个反应) (0 位负责人)Python (38 个派生)auto 404
documentationgood first issuesprint-friendly

仓库指标

星标
 (435 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

With #92, a new way of creating reference objects was introduced.

  • We will need to replace all instances of tb.ref with tb.get and also mention that one can use the indexing pattern to create the objects.
  • Also mention that when the object is JSON serializable, when tb.get is called on that variable, the actual value will be fetched, and not the reference object, which was the case before. (This is the actual reason why we need to move away from tb.ref examples because they no longer return "references" always.)
  • Provide a few code examples to demonstrate the new pattern.

This piece of code outlines the different ways we can create testbook reference objects as of now.

贡献者指南