Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Jan 8, 2024
1 parent 3274e71 commit 10fe2f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/providers/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def test_file_path(self):
assert re.search(r"\/\w+\/\w+\.(bmp|gif|jpeg|jpg|png|tiff)", file_path)
file_path = self.fake.file_path(file_system_rule="windows")
assert re.search(r"\\\w+\\\w+\.\w+", file_path)
file_path = self.fake.file_path(file_system_rule="windows", absolute=True)
assert re.search(r"[a-zA-Z]:\\\w+\\\w+\.\w+", file_path)
assert re.search(r"\/\w+\/\w+\.(bmp|gif|jpeg|jpg|png|tiff)$", file_path)
file_path = self.fake.file_path(file_system_rule="windows", category="image", absolute=True)
assert re.search(r"^[a-zA-Z]:\\\w+\\\w+\.\w+", file_path)
assert re.search(r"\\\w+\\\w+\.(bmp|gif|jpeg|jpg|png|tiff)$", file_path)

def test_unix_device(self):
reg_device = re.compile(r"^/dev/(vd|sd|xvd)[a-z]$")
Expand Down

0 comments on commit 10fe2f5

Please sign in to comment.