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

#273 Alphanumeric ordering #274

Merged
merged 6 commits into from
Feb 21, 2019
Merged

Conversation

ArtemijRodionov
Copy link
Contributor

Closes #273

Create order_by_alphanumeric

Test order_by_alphanumeric
@ArtemijRodionov ArtemijRodionov self-assigned this Feb 20, 2019
Copy link
Collaborator

@duker33 duker33 left a comment

Choose a reason for hiding this comment

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

two minors


def test_order_by_alphanumeric(self):
ordered_tags = [
catalog_models.MockTag(name='a'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can cut boilerplate code:

ordered_tags= [
    catalog_models.MockTag(name=name)
    for name in ['a', 'b', '1.2 В', ...]
]

catalog_models.MockTag(name='1.6 В'),
catalog_models.MockTag(name='5 В'),
catalog_models.MockTag(name='12 В'),
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

it should be good to add numeric values with another dimension: ['1.2 A', '6 A'] for example

@ArtemijRodionov ArtemijRodionov merged commit 06179e0 into master Feb 21, 2019
@ArtemijRodionov ArtemijRodionov deleted the 273-alphanumeric-ordering branch February 21, 2019 21:12
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