websauna.tests.model.test_jsonb module

JSONB field behavior checks.

websauna.tests.model.test_jsonb.test_committed_jsonb_dict_new_key(dbsession, registry)[source]

Check that new keys added to JSONB dict that is loaded from db are persistent.

websauna.tests.model.test_jsonb.test_pending_jsonb_dict_new_key(dbsession, registry)[source]

Check that new keys added to JSONB that is not committed yet are persistent.

websauna.tests.model.test_jsonb.test_query_jsonb_data(dbsession, registry, query_param, expected_lines)[source]

Query JSONB field by one of its keys.