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 for the osmuser model in the login app #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tony-nyagah
Copy link
Owner

@tony-nyagah tony-nyagah commented Mar 14, 2024

What does this PR do?

This PR adds tests specifically for models in the login app of this project.

Contributes to resolving issue: hotosm#229

Considerations

I also modified the .gitignore to include .venv and .env folder to avoid accidentally committing files in those folders.

I added Model bakery to the requirements because of it's ease of use in implementing tests.

How to test?

The test for the models in the core app can be run with python manage.py test tests.test_models_login.

- add modelbakery to requirements for testing
- add env folders to gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant