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

rf#168 Prepare context module for moving to refarm #573

Merged
merged 10 commits into from
Sep 16, 2018
Merged

Conversation

duker33
Copy link
Contributor

@duker33 duker33 commented Sep 11, 2018

@duker33 duker33 self-assigned this Sep 11, 2018
def get_category_soup(self, page_number: int) -> BeautifulSoup:
def get_category_soup(self, page_number: int, required_status=200) -> BeautifulSoup:
category_page = self.get_category_page(query_string={'page': page_number})
assert category_page.status_code == required_status
Copy link
Contributor

Choose a reason for hiding this comment

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

You should separately test a status code of a response, but not here

@duker33 duker33 merged commit b175023 into master Sep 16, 2018
@duker33 duker33 deleted the rf168_move_context branch September 16, 2018 15:59
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