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

Code refactoring: Simplify MockDeploymentBackend #5056

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Aug 8, 2024

Description

Part VII of #5036.

Notes

Remove (almost) every mocked object, function, class etc... from MockDeploymentBackend.
All tests are using the same deployment mechanism than production which gives us a better test coverage.
The counterpart, it takes longer to run the whole suite without any parallel mechanism (such as py-xdist plugin).

Related issues

Part of #5036

@noliveleger noliveleger changed the base branch from main to kobocat-django-app-part-2 August 8, 2024 17:55
@noliveleger noliveleger changed the title Kobocat django app part 2 refactor mock deployment backend Code refactoring: Simply MockDeploymentBackend Aug 8, 2024
@noliveleger noliveleger changed the title Code refactoring: Simply MockDeploymentBackend Code refactoring: Simplify MockDeploymentBackend Aug 8, 2024
@noliveleger noliveleger requested a review from jnm August 8, 2024 20:22
@noliveleger noliveleger marked this pull request as ready for review August 8, 2024 20:22
@noliveleger noliveleger force-pushed the kobocat-django-app-part-2-refactor-mock-deployment-backend branch from 0da213d to f68c59b Compare August 8, 2024 20:37
@noliveleger noliveleger force-pushed the kobocat-django-app-part-2-refactor-mock-deployment-backend branch from f68c59b to be7505e Compare August 8, 2024 21:00
@noliveleger noliveleger changed the base branch from kobocat-django-app-part-2 to kobocat-django-app-part-2-remove-service-account August 8, 2024 21:01
Copy link

1 similar comment
Copy link

kobo/apps/openrosa/apps/logger/models/instance.py Outdated Show resolved Hide resolved
kobo/apps/subsequences/tests/test_submission_stream.py Outdated Show resolved Hide resolved
kobo/apps/trackers/submission_utils.py Outdated Show resolved Hide resolved
kpi/deployment_backends/mock_backend.py Show resolved Hide resolved
kpi/deployment_backends/openrosa_backend.py Outdated Show resolved Hide resolved
kpi/tests/api/v2/test_api_submissions.py Show resolved Hide resolved
kpi/tests/api/v2/test_api_submissions.py Show resolved Hide resolved
kpi/tests/test_mongo_helper.py Outdated Show resolved Hide resolved
kpi/tests/utils/dicts.py Outdated Show resolved Hide resolved
kpi/views/v2/data.py Show resolved Hide resolved
@noliveleger noliveleger force-pushed the kobocat-django-app-part-2-remove-service-account branch from 59a00a6 to 41c6b73 Compare October 3, 2024 21:24
Copy link
Member

@jnm jnm left a comment

Choose a reason for hiding this comment

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

🔍 ✔️

@jnm jnm merged commit 78ee7d8 into kobocat-django-app-part-2-remove-service-account Oct 3, 2024
4 checks passed
@jnm jnm deleted the kobocat-django-app-part-2-refactor-mock-deployment-backend branch October 3, 2024 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants