Skip to content

Commit b0c78f2

Browse files
Add empty body test
1 parent 3618f15 commit b0c78f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/services/contents/test_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ async def test_create_untitled(jp_fetch, contents, contents_dir, _check_created)
349349
r = await jp_fetch("api", "contents", path, method="POST", body=json.dumps({"ext": ".ipynb"}))
350350
_check_created(r, str(contents_dir), path, name, type="notebook")
351351

352+
name = "untitled"
353+
r = await jp_fetch("api", "contents", path, method="POST", allow_nonstandard_methods=True)
354+
_check_created(r, str(contents_dir), path, name=name, type="file")
355+
352356

353357
async def test_create_untitled_txt(jp_fetch, contents, contents_dir, _check_created):
354358
name = "untitled.txt"

0 commit comments

Comments
 (0)