Skip to content

Commit 5b62343

Browse files
committed
test: assets
1 parent 7a609fa commit 5b62343

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/assets/with_docs_url_set.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from fastapi import FastAPI
2+
3+
first_other = FastAPI()
4+
5+
6+
app = FastAPI(docs_url="/any-other-path")
7+
8+
9+
@app.get("/")
10+
def api_root():
11+
return {"message": "single file api"}

tests/assets/without_docs_url_set.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from fastapi import FastAPI
2+
3+
first_other = FastAPI()
4+
5+
6+
app = FastAPI()
7+
8+
9+
@app.get("/")
10+
def api_root():
11+
return {"message": "single file api"}

0 commit comments

Comments
 (0)