-
Notifications
You must be signed in to change notification settings - Fork 9
DX-2686 Add Media Integration Tests #95
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
Conversation
Added FIxtures
github actions runId is not unique
bpateldx
left a comment
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.
Please review. No blocker except using with for opening file
test/integration/test_media_api.py
Outdated
|
|
||
| def _steps(self) -> None: | ||
| for name in dir(self): # dir() result is implicitly sorted | ||
| if name.startswith("step"): |
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.
Alternate way to go about finding functions you are interested in - override dir:
def __dir__(self):
# this allows naming your functions the way you really want-:)
return['upload', 'download', 'delete', 'list_media']
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.
dir() in python returns the list sorted in alphabetic order so i don't think this is possible (with overriding __dir__ at least - it might be possible another way
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.
The above function will return list so the items would be exactly in the specified order.
Simple way to go about this would be literally calling these functions in the order you desire. It will depict the intention in simple, easy to digest way.
bpateldx
left a comment
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.
Good with changes
No description provided.