Skip to content

Commit

Permalink
Backport PR #867 on branch 1.x (Fix lint) (#873)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
meeseeksmachine and blink1073 authored Jun 15, 2022
1 parent e796836 commit 7bbc200
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/services/contents/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ async def test_get_404_hidden(jp_fetch, contents, contents_dir):
# Create text files
hidden_dir = contents_dir / ".hidden"
hidden_dir.mkdir(parents=True, exist_ok=True)
txt = f"visible text file in hidden dir"
txtname = hidden_dir.joinpath(f"visible.txt")
txt = "visible text file in hidden dir"
txtname = hidden_dir.joinpath("visible.txt")
txtname.write_text(txt, encoding="utf-8")

txt2 = f"hidden text file"
txtname2 = contents_dir.joinpath(f".hidden.txt")
txt2 = "hidden text file"
txtname2 = contents_dir.joinpath(".hidden.txt")
txtname2.write_text(txt2, encoding="utf-8")

with pytest.raises(tornado.httpclient.HTTPClientError) as e:
Expand Down Expand Up @@ -641,8 +641,8 @@ async def test_copy_400_hidden(
# Create text files
hidden_dir = contents_dir / ".hidden"
hidden_dir.mkdir(parents=True, exist_ok=True)
txt = f"visible text file in hidden dir"
txtname = hidden_dir.joinpath(f"new.txt")
txt = "visible text file in hidden dir"
txtname = hidden_dir.joinpath("new.txt")
txtname.write_text(txt, encoding="utf-8")

paths = ["new.txt", ".hidden.txt"]
Expand Down

0 comments on commit 7bbc200

Please sign in to comment.