-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
Create order_by_alphanumeric Test order_by_alphanumeric
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two minors
tests/catalog/test_models.py
Outdated
|
||
def test_order_by_alphanumeric(self): | ||
ordered_tags = [ | ||
catalog_models.MockTag(name='a'), |
There was a problem hiding this comment.
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 В'), | ||
] |
There was a problem hiding this comment.
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
Closes #273