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

Add tests to asset deployments #3126

Merged
merged 13 commits into from
Jun 2, 2021
Merged

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Apr 9, 2021

Checklist

  1. If you've added code that should be tested, add tests
  2. If you've changed APIs, update (or create!) the documentation
  3. Ensure the tests pass
  4. Make sure that your code lints and that you've followed our coding style
  5. Write a description of your work suitable for publishing on our forum
  6. Mention any related issues in this repository (as #ISSUE) and in other repositories (as kobotoolbox/other#ISSUE)

Description

This PR modifies the MockDeploymentBackend class to make it behave a little bit more like KobocatDeploymentBackend when deploying assets. It lets our unit tests cover more code that's used for asset deployment.

Related issues

Part of #2487

 # Conflicts:
 #	kpi/deployment_backends/base_backend.py
 #	kpi/deployment_backends/kobocat_backend.py
 #	kpi/tests/test_deployment_backends.py
@noliveleger noliveleger changed the title Add tests to asset deployments [ Form Media ] - Add tests to asset deployments Apr 30, 2021
kpi/tests/test_deployment_backends.py Outdated Show resolved Hide resolved
kpi/tests/test_deployment_backends.py Outdated Show resolved Hide resolved
@jnm jnm merged commit f05b73a into 2487-form-media Jun 2, 2021
@jnm jnm deleted the 2487-form-media-deployment-tests branch June 2, 2021 18:33
@noliveleger noliveleger changed the title [ Form Media ] - Add tests to asset deployments Add tests to asset deployments Jun 14, 2021
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