-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put extra arg test back #1641
base: main
Are you sure you want to change the base?
Put extra arg test back #1641
Conversation
mock_stat = MagicMock() | ||
mock_stat.st_size = 1024 # Mock st_size with a desired value | ||
mock_stat.st_mode = 33188 # Regular file mode for Unix-based systems | ||
def custom_stat_mock(path: Any): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is some really intense patching, are you sure this test can't be made simpler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, should be, but I was not able to come up with one. Any suggestions? I basically need
os.path.exists(filelocks)
to behave normally, and other os.stat
to return a mock stat when testing with private-streaming.
c7d8e89
to
4922cd1
Compare
With streaming upgraded to 0.9.1, the unit test would lead to inf loop.