Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 27, 2023
1 parent cc94cec commit 6366d6d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -1694,32 +1694,32 @@ def test_docx(self) -> None:
self.assertIsInstance(docx, bytes)

def test_pdf_file(self) -> None:
filename = self.faker.pdf_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.pdf_file()
self.assertTrue(os.path.exists(file.data["filename"]))

def test_png_file(self) -> None:
filename = self.faker.png_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.png_file()
self.assertTrue(os.path.exists(file.data["filename"]))

def test_svg_file(self) -> None:
filename = self.faker.svg_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.svg_file()
self.assertTrue(os.path.exists(file.data["filename"]))

def test_bmp_file(self) -> None:
filename = self.faker.bmp_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.bmp_file()
self.assertTrue(os.path.exists(file.data["filename"]))

def test_gif_file(self) -> None:
filename = self.faker.gif_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.gif_file()
self.assertTrue(os.path.exists(file.data["filename"]))

def test_docx_file(self) -> None:
filename = self.faker.docx_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.docx_file()
self.assertTrue(os.path.exists(file.data["filename"]))

def test_txt_file(self) -> None:
filename = self.faker.txt_file()
self.assertTrue(os.path.exists(filename))
file = self.faker.txt_file()
self.assertTrue(os.path.exists(file.data["filename"]))


if __name__ == "__main__":
Expand Down

0 comments on commit 6366d6d

Please sign in to comment.