Skip to content

Conversation

@agoncharov-reef
Copy link

Split big test into multiple small ones

@agoncharov-reef
Copy link
Author

@mpnowacki-reef



def test_download_file_by_id_no_auth(raw_api, download_url, file_dict, file_contents):
def test_download_file_by_id_no_auth(raw_api, download_url, file_dict):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file_dict is an unused variable here and in a few more tests. What I think you want to do is a class-based test which inherits from a FileHandlingHelper which uploads a file and assigns it to a self.file_dict in a setUp method

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why so complicated? I need a file uploaded for the test. I require it in test inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants