Skip to content

Commit

Permalink
Fix command_test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Oct 24, 2024
1 parent 35a4945 commit aec855b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/tests/command_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def setUp(self) -> None:
pass
os.mkdir(self.DIR_NAME)
# create some example README.md files
for i in range(3):
for i, file in enumerate(FILES):
os.mkdir(f"{self.DIR_NAME}/example{i}")
with open(f"{self.DIR_NAME}/example{i}/README.md", "w") as f:
f.write(FILES[i])
f.write(file)

def tearDown(self) -> None:
shutil.rmtree(self.DIR_NAME)
Expand Down

0 comments on commit aec855b

Please sign in to comment.