Compare commits
4 commits
18d399dbbf
...
5c9b5fa56d
Author | SHA1 | Date | |
---|---|---|---|
5c9b5fa56d | |||
26966a34d2 | |||
a63acf2026 | |||
9f756c2469 |
2 changed files with 5 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
|||
from calendar import c
|
||||
import queue, sqlite3, time, atexit, sys, uuid, json, urllib.parse, logging, datetime, os
|
||||
from flask import Flask, render_template, request, make_response, session, url_for, g, Blueprint
|
||||
import queue, time, uuid, json, logging, datetime, os
|
||||
from flask import Flask, render_template, request, make_response, session, url_for, g
|
||||
from flask_socketio import SocketIO, join_room, leave_room
|
||||
from flask_session import Session
|
||||
from markupsafe import escape
|
||||
|
@ -9,7 +8,6 @@ from .db import get_db
|
|||
|
||||
#flask_config
|
||||
DATABASE = 'Website/mate.db'
|
||||
bp = Blueprint('auth', __name__, url_prefix='/auth')
|
||||
|
||||
def create_logs(app):
|
||||
now = datetime.datetime.now().strftime('%d-%m-%Y-%H-%M-%S')
|
||||
|
@ -44,11 +42,9 @@ def create_app(test_config=None):
|
|||
# if db is not None:
|
||||
# db.close()
|
||||
# app.logger.info("Website exited")
|
||||
|
||||
#var
|
||||
status = True
|
||||
users = queue.Queue()
|
||||
finished = None
|
||||
message = None
|
||||
|
||||
#website
|
||||
@app.route('/favicon.ico')
|
||||
|
|
|
@ -3,6 +3,7 @@ from urllib import response
|
|||
from Website import create_app
|
||||
import json
|
||||
import pdb
|
||||
import Website
|
||||
from Website.db import get_db
|
||||
from .test_conf import client, app
|
||||
|
||||
|
@ -44,8 +45,7 @@ def test_addtag_userid_nan(client):
|
|||
|
||||
def test_addtag(app, client):
|
||||
response_addtag = client.get('/addtag?id=1')
|
||||
with app.app_context():
|
||||
None
|
||||
#hier muss der userque was hinzugefügt werden!
|
||||
response_tagid = client.get('/api/tag_id?id=12345678')
|
||||
|
||||
#/api
|
||||
|
|
Loading…
Reference in a new issue