export_project_as_json

Export a dbnl Project alongside its Test Specs and Tags as a JSON object

dbnl.export_project_as_json(
    *,
    project: Project,
) -> dict[str, Any]:

Parameters

Arguments
Description

project

The Project to export as json.

Returns

Type
Description

dict[str, Any]

JSON object representing the Project. Example:

Examples

import dbnl
dbnl.login()


proj = dbnl.get_or_create_project(name="test_proj")
export_json = dbnl.export_project_as_json(project=proj)

assert export_json["project"]["name"] == "test_proj"

Was this helpful?