Skip to content

Commit d89004d

Browse files
author
Fabien Coelho
committed
move import
1 parent eb22c3b commit d89004d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import FlaskSimpleAuth as fsa
44
import secret
5-
import model
65

76
# create application with token, param and basic authentication
87
app = fsa.Flask("app", FSA_MODE="dev", FSA_AUTH=["token", "param", "basic"])
@@ -40,7 +39,9 @@ def get_admin(user: fsa.CurrentUser):
4039
def get_hello(lang: fsa.Cookie = "en"):
4140
return {"lang": lang, "hello": HELLO.get(lang, "Hi")}, 200
4241

43-
# json, pydantic and dataclasses
42+
# json, pydantic and dataclasses tests
43+
import model
44+
4445
# FIXME could we drop fsa.jsonify?
4546
@app.get("/t0", authorize="OPEN")
4647
def get_t0(t: fsa.JsonData):

0 commit comments

Comments
 (0)