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

Refactor AutoGradingService as a real service #6694

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

marcospri
Copy link
Member

@marcospri marcospri commented Sep 23, 2024

For:

Make this a real service in preparation to handle GradingSync objects and ideally making this PR a little bit smaller #6690

@@ -2,53 +2,65 @@
from lms.models import AutoGradingConfig


def calculate_grade(
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved to a method (instead of function)

@@ -190,7 +196,3 @@ def views(self, pyramid_request):
@pytest.fixture
def get_page(self, patch):
return patch("lms.views.dashboard.api.user.get_page")

@pytest.fixture
def calculate_grade(self, patch):
Copy link
Member Author

Choose a reason for hiding this comment

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

Using the service mock instead of a new function mock.

@marcospri marcospri marked this pull request as ready for review September 23, 2024 08:20
Copy link
Contributor

@acelaya acelaya left a comment

Choose a reason for hiding this comment

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

👍🏼

@marcospri marcospri merged commit ea8696d into main Sep 23, 2024
9 checks passed
@marcospri marcospri deleted the refactor-auto-grading-service branch September 23, 2024 09:22
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