Skip to main content

Module test_helpers

Module test_helpers 

Source
Expand description

Test helpers

Modules§

setup
Drive Setup Helpers.
test_utils
test utils

Functions§

setup_contract
Applies to Drive a JSON contract from the file system.
text_file_strings
Takes a file and returns the lines as a list of strings.
vote_poll_end_dates
Every end date of the vote poll end-date queries, with the unique ids of the vote polls listed under it; an end date that lists none shows as an empty set.
with_likes_read_whole_through_by_liker
The yappr-likes contract with its like type read whole through byLiker: without a proof, a chained read is refused when its inner index lacks a property, as a documents query through that index is, and byLiker lacks the like’s optional hashtag; so the like keeps only what byLiker holds (no hashtag, no byHashtagPost, no where on postId, which takes the first position). Shared by Drive’s and drive-abci’s chained query tests.