Skip to content
Snippets Groups Projects
Commit 00060623 authored by Arno Wunderlich's avatar Arno Wunderlich
Browse files

code refactoring for complance with recommendation

parent 4610c2ec
No related branches found
No related tags found
1 merge request!15code refactoring for complance with recommendation
Pipeline #14027 passed
......@@ -33,4 +33,3 @@ def init_db(app):
extra={"MONGODB_SETTINGS": app.config.get("MONGODB_SETTINGS")} if app.debug else {})
db.init_app(app)
......@@ -99,4 +99,3 @@ def add_item():
def adding_successful():
return "Item added successfully"
from tjts5901.views import test_item_adding
def test_db():
"""
Testing the db connection via previously defined test method
"""
#assert init_db({'TESTING': True}).testing
assert test_item_adding()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment