Skip to content

Commit

Permalink
Merge pull request #125 from gisce/test_inherit_views_on_test_all_views
Browse files Browse the repository at this point in the history
Testear inher views in free time
  • Loading branch information
polsala authored Feb 1, 2024
2 parents 60cacd1 + 955dea4 commit f29d3eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions destral/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,18 @@ def test_all_views(self):
if view.inherit_id:
version = view.version
while view.inherit_id:
try:
model.fields_view_get(
txn.cursor, txn.user, view.id, view.type
)
except ReferenceError as r_err:
raise r_err
logger.info(
'Testing inherit view %s (id: %s)',
view.name, view.id
)
view = view.inherit_id

model.fields_view_get(txn.cursor, txn.user, view.id,
view.type, version=version)
logger.info('Testing main view %s (id: %s) v%s',
Expand Down

0 comments on commit f29d3eb

Please sign in to comment.