Skip to content

Commit 2d5ff9e

Browse files
wip: tests: almanac resolutions
1 parent ef3af78 commit 2d5ff9e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/genesis/helpers/field_enums.py

+10
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,16 @@ def table(self):
343343
return "almanac_registrations"
344344

345345

346+
class AlmanacResolutions(NamedFields):
347+
id = 0
348+
address = 1
349+
record_id = 2
350+
351+
@classmethod
352+
@property
353+
def table(self):
354+
return "almanac_registrations"
355+
346356

347357
class AlmanacRecords(NamedFields):
348358
id = 0

tests/e2e/entities/test_almanac.py

+17
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,22 @@ def test_registrations_gql(self):
185185
self.assertRegex(registration["blockId"], block_id_regex)
186186
# TODO: assert record equality
187187

188+
# GQL query
189+
# - historical registrations: where expired
190+
# - resolutions success
191+
# - resolutions expired (empty result)
192+
# assertions
193+
194+
def test_resolutions_sql(self):
195+
pass
196+
# SQL query
197+
# assertions
198+
199+
def test_resolutions_gql(self):
200+
pass
201+
# GQL query
202+
# assertions
203+
204+
188205
if __name__ == "__main__":
189206
unittest.main()

0 commit comments

Comments
 (0)