-
Notifications
You must be signed in to change notification settings - Fork 18
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
Seed categories script unit tests #1049
Conversation
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.
🚢
def _get_category_from_model(category): | ||
return { | ||
"label": category.label, | ||
"dimension": category.dimension, | ||
"hierarchy": category.hierarchy, | ||
} |
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.
🔥
9502b6f
to
d9c1c01
Compare
return category | ||
|
||
|
||
def get_all_categories(version: str): |
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.
The caller of this method (ref here) still seems to be referencing it as if it were a class method for CategoryModel
.
} | ||
|
||
|
||
def get_category(name: str, version: str): |
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.
The caller of this method (ref here) still seems to be referencing it as if it were a class method for CategoryModel
.
We should update that reference to api.models.category.get_category(..)
.
Description