forked from kompetenzinventar/ki-backend
fix linter issues
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
from alembic import command
|
||||
@ -39,8 +38,8 @@ class ApiTest(unittest.TestCase):
|
||||
# print(statement)
|
||||
# max_skill = db.session.Skill().order_by(Skill.id.desc()).first()
|
||||
# max_skill = Skill.query.order_by(Skill.id.desc()).first() # TODO: problematic
|
||||
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,
|
||||
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,
|
||||
# skills = db.session.execute(db.select(Skill)).scalars()
|
||||
# print(max_skill)
|
||||
# max_skill = db.session.execute(db.select(Skill)
|
||||
|
@ -1,5 +1,4 @@
|
||||
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import unittest
|
||||
@ -10,7 +9,7 @@ from ki.test.ApiTest import ApiTest
|
||||
class TestContactTypesEndpoint(ApiTest):
|
||||
def test_skills_options(self):
|
||||
print("test_skills_options")
|
||||
#with app.app_context():
|
||||
# with app.app_context():
|
||||
response = self.client.options("/contacttypes")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertIn("Access-Control-Allow-Origin", response.headers)
|
||||
|
Reference in New Issue
Block a user