fix linter issues
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
srsh 2024-03-19 20:47:09 +01:00
parent 4529b07d54
commit 8540623961

View File

@ -37,7 +37,7 @@ class ApiTest(unittest.TestCase):
# print(statement) # print(statement)
# max_skill = db.session.Skill().order_by(Skill.id.desc()).first() # max_skill = db.session.Skill().order_by(Skill.id.desc()).first()
# max_skill = Skill.query.order_by(Skill.id.desc()).first() # TODO: problematic # max_skill = Skill.query.order_by(Skill.id.desc()).first() # TODO: problematic
with db.session.no_autoflush: # only works on first test run with db.session.no_autoflush: # only works on first test run
max_skill = db.session.query(Skill).order_by(Skill.id.desc()).first() # TODO: also problematic, max_skill = db.session.query(Skill).order_by(Skill.id.desc()).first() # TODO: also problematic,
# skills = db.session.execute(db.select(Skill)).scalars() # skills = db.session.execute(db.select(Skill)).scalars()
# print(max_skill) # print(max_skill)