Skip to content
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

Refactor integration tests #210

Open
wants to merge 4 commits into
base: replication_enhancement
Choose a base branch
from

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.

2 participants