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

Seed categories script unit tests #1049

Merged
merged 8 commits into from
Jun 1, 2023

Conversation

codemonkey800
Copy link
Collaborator

Description

@codemonkey800 codemonkey800 added the maintenance Release Label: Used for categorizing maintenance PRs in automated CI release notes label May 12, 2023
backend/api/models/_tests/test_category.py Outdated Show resolved Hide resolved
backend/api/models/_tests/test_category.py Outdated Show resolved Hide resolved
backend/api/models/_tests/test_category.py Outdated Show resolved Hide resolved
backend/api/models/category.py Show resolved Hide resolved
backend/api/models/_tests/test_category.py Outdated Show resolved Hide resolved
data-workflows/tests/test_handler.py Outdated Show resolved Hide resolved
data-workflows/tests/test_handler.py Outdated Show resolved Hide resolved
backend/api/models/_tests/test_category.py Show resolved Hide resolved
backend/api/models/_tests/test_category.py Show resolved Hide resolved
data-workflows/categories/tests/test_processor.py Outdated Show resolved Hide resolved
manasaV3
manasaV3 previously approved these changes May 31, 2023
Copy link
Collaborator

@manasaV3 manasaV3 left a comment

Choose a reason for hiding this comment

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

🚢

backend/api/models/category.py Show resolved Hide resolved
Comment on lines +38 to +43
def _get_category_from_model(category):
return {
"label": category.label,
"dimension": category.dimension,
"hierarchy": category.hierarchy,
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔥

@codemonkey800 codemonkey800 force-pushed the jeremy/seed-categories-script-tests branch from 9502b6f to d9c1c01 Compare May 31, 2023 20:00
@codemonkey800 codemonkey800 merged commit 0ae21ef into main Jun 1, 2023
@codemonkey800 codemonkey800 deleted the jeremy/seed-categories-script-tests branch June 1, 2023 17:41
return category


def get_all_categories(version: str):
Copy link
Collaborator

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):
Copy link
Collaborator

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(..).

@codemonkey800 codemonkey800 mentioned this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Release Label: Used for categorizing maintenance PRs in automated CI release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants