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

#836 Test categories matrix sorting #874

Merged
merged 3 commits into from
Jun 15, 2019
Merged

#836 Test categories matrix sorting #874

merged 3 commits into from
Jun 15, 2019

Conversation

duker33
Copy link
Contributor

@duker33 duker33 commented Jun 11, 2019

Closes #836

Didn't test block items limiting. The test should be too complex, for a such minor limiting feature

@duker33 duker33 requested a review from ArtemijRodionov June 11, 2019 16:21
@duker33 duker33 changed the title 836 limiting test #836 Test categories matrix sorting Jun 11, 2019
@duker33 duker33 self-assigned this Jun 11, 2019
Copy link
Contributor

@ArtemijRodionov ArtemijRodionov left a comment

Choose a reason for hiding this comment

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

It seems you took changes from different branch

# @todo #822:60m Create tests for the catalog matrix.
# This cases are would be good to test:
# - Matrix sorting by page position
# - Block items limiting
Copy link
Contributor

Choose a reason for hiding this comment

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

Block items limiting

It seems you still haven't test this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

y, did it intentionally. Updated PR body about it

@duker33 duker33 force-pushed the 836_limiting_test branch from e54e251 to 0841eee Compare June 12, 2019 07:34
@duker33
Copy link
Contributor Author

duker33 commented Jun 12, 2019

It seems you took changes from different branch

sorry, i should wait for rebase on #850 task's code merging

@duker33 duker33 requested a review from ArtemijRodionov June 12, 2019 07:38
@duker33
Copy link
Contributor Author

duker33 commented Jun 12, 2019

@artemiy312 , it's ready for review

class CategoriesMatrix(BaseCatalogTestCase):

fixtures = ['dump.json']
URL = reverse_lazy('custom_page', kwargs={'page': 'catalog'})
Copy link
Contributor

Choose a reason for hiding this comment

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

You can move this to get_page and use reverse instead of reverse_lazy

@duker33 duker33 merged commit 2579632 into master Jun 15, 2019
@duker33 duker33 deleted the 836_limiting_test branch June 15, 2019 10:44
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.

catalog.py:27-30: Create tests for the catalog matrix....
2 participants