Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
SDK experimental functions are in early development and are not fully tested. These functions are light-weight wrappers of the API endpoints, and are mostly interacting via JSONs/dicts.
Function names and signature are expected to be changed when they are elevated to standard SDK functions in the future.
Retrieve the completed TestSession
test_session
The dbnl to wait for completion.
timeout_s
An optional timeout (in seconds) parameter for waiting for the TestSession to complete. An exception will be raised if the TestSession did not complete before timeout_s
has elapsed.
TestSession
The completed TestSession
Retrieve the specified dbnl Test Tag or create a new one if it does not exist
project_id
The dbnl Project that this Test Tag is associated with.
name
The name of the Test Tag to be retrieved. If a Tag with the name does not exist, it will create a new Tag. Tag names must be unique.
description
An optional description for the Tag. Descriptions are limited to 255 characters.
Dict[str, Any]
Test Tag JSON
If a TestSession has completed and some of the generated Tests had incorrect outcomes, you can tell Distributional that these tests should have had different results.
Only applies to Tests generated by Distributional, not custom, user-defined Tests.
If some generated Tests failed when they should have passed, and some passed when they should have failed, the user will need to submit 2 separate calls, for each feedback
result.
test_session
The TestSession the user wants to recalibrate
feedback
either "PASS"
or "FAIL"
, to redefine the Test outcomes.
test_ids
List of Tests to apply the feedback to. If None
, then all generated Tests will be set with the given feedback
.
TestRecalibrationSession
The TestRecalibrationSession object that was created. The status
can be checked to determine when recalibration is complete.
If a TestSession has completed and some of the generated Tests had incorrect outcomes, you can tell Distributional that these tests should have had different results.
Only applies to Tests generated by Distributional, not custom Tests
run
columns
Either a list of column names or a list of dictionaries with only 1 key, "name". These names must refer to the columns in the Run that dbnl will use to generate Tests. If None
, then all columns in the Run will be used.
TestGenerationSession
The TestGenerationSession object that was created. The status
can be checked to determine when test generation is complete.
The following 2 examples are equivalent:
To generate tests for all columns, leave columns
out:
Formats an incomplete Test Spec JSON
Wait for a Test Generation Session to finish
test_generation_session
The dbnl to wait for completion.
timeout_s
An optional timeout (in seconds) parameter for waiting for the TestGenerationSession to complete. An exception will be raised if the TestGenerationSession did not complete before timeout_s
has elapsed.
TestGenerationSession
The completed TestGenerationSession
test_recalibration_session
The dbnl to wait for completion.
timeout_s
An optional timeout (in seconds) parameter for waiting for the TestRecalibrationSession to complete. An exception will be raised if the TestRecalibrationSession did not complete before timeout_s
has elapsed.
TestRecalibrationSession
The completed TestRecalibrationSession
The to use when generating tests.