Hi all,
I’m writing a create/edit/delete test for a newly created object in a plugin.
I am trying to get the list of the existing objects, but I always got an empty list… but the records are there, correctly saved in my new table in the DB.
This is the code:
def test_obj:
objs = obj.query.order_by(obj.id).all()
… but it is always returned as []
What am I doing wrong? Is there any ‘context’ I need to add?
Thank you,
Giorgio