Skip to content

Commit

Permalink
test: specify is_private for file with private URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Oct 26, 2022
1 parent 2fd399a commit 52e9a12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/core/doctype/file/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ def test_file_url_validation(self):
self.assertRaisesRegex(IOError, "does not exist", test_file.validate)

test_file.file_url = None
test_file.is_private = 1
test_file.file_name = "/private/files/_file"
self.assertRaisesRegex(ValidationError, "File name cannot have", test_file.validate)

Expand Down

0 comments on commit 52e9a12

Please sign in to comment.