lantern

unified-api-test

Unified API Test

Testing peek, poke, execute with 'slug:path' addressing.

Config

test_value: original
counter: 0
Player Score
Alice 10
Bob 20

Test: Virtual Fence by Label

data = execute('unified-api-test:scores', action='list')
result = {'op': 'execute', 'by': 'label', 'success': data.get('success'), 'rows': data.get('data', {}).get('row_count')}

Test: Virtual Fence by Suffix

data = execute('unified-api-test:.table', action='get_cell', params={'row': 0, 'col': 1})
result = {'op': 'execute', 'by': '.table', 'success': data.get('success'), 'value': data.get('value')}