hotosm / fAIr

AI Assisted Mapping
GNU Affero General Public License v3.0
74 stars 59 forks source link

Implement Backend Test Cases for fAIr #229

Open kshitijrajsharma opened 6 months ago

kshitijrajsharma commented 6 months ago

Issue Description:

Objective:

We are seeking an enthusiastic intern to collaborate on enhancing our Django backend project by integrating backend test cases. This issue aims to ensure the robustness and reliability of our application through systematic testing practices. Your contribution will involve writing test cases, determining code coverage, and ensuring all functionalities are tested following industry best practices.

Responsibilities:

Expected Outcomes:

Resources

Test Folder Structure :

└── backend
    └── tests
        ├── __init__.py
        ├── test_worker_example.py
        ├── test_models_example.py
        └── test_views_example.py

Tests should cover Any of the following :

Videos and docs :

What should be included in PR:

--- What does this PR do ?

--- Consideration:

--- How to test ?

Support:

Feel free to ask questions or seek clarifications by commenting on this issue. We're excited to see your contributions.

How to Proceed:

Issue will be completed when :

kshitijrajsharma commented 5 months ago

@kshitijrajsharma I have received an invite to the HOTOSM slack community but I am able to join due to an org email being required. Should I go ahead and work on this issue?

Yes sure !

TMicha commented 5 months ago

Hello @kshitijrajsharma, I would like to work on this also...I will revert as soon as I have created a PR. Thank you

chiomaubaezuonu commented 5 months ago

Hello @kshitijrajsharma, I would also be working on this issue.

azharcodeit commented 5 months ago

Hey @kshitijrajsharma, appreciate the opportunity to contribute, will drop a PR as soon as possible!

nifedara commented 5 months ago

Hi @kshitijrajsharma, I will be contributing

princyym commented 5 months ago

Hello @kshitijrajsharma, I want to contribute for the same!!

nifedara commented 5 months ago

Hello @kshitijrajsharma, when I hit the login to get an access token, I get this: image

image

Another time, it redirects here to the frontend: image

I can't seem to get the access token. I don't know where to get it from here. Please point me to how to get it

mvhammedali commented 5 months ago

@nifedara inspect > Application > LocalStorage

nifedara commented 5 months ago

@nifedara inspect > Application > LocalStorage

Thank youu. I have gotten it now

nwekealex65 commented 5 months ago

@kshitijrajsharma Please review my PR https://github.com/nwekealex65/fAIr/pull/6

medinasheriff commented 5 months ago

Hi, I will be contributing to this project. Thank you.

nifedara commented 5 months ago

Hi, @kshitijrajsharma, here is my PR: Oluwanifemi PR

tony-nyagah commented 5 months ago

Hi @kshitijrajsharma, here is my PR: https://github.com/tony-nyagah/fAIr/pull/3

durotimmi-sk commented 5 months ago

hi, i will like to contribute to this project. Thank you

Pazil24 commented 5 months ago

I would like to contribute to this @kshitijrajsharma , I an still analyzing and learning. However I love the challenge this project brings.

princyym commented 5 months ago

hello @kshitijrajsharma,. Do I need to create all three files (models, views, and API) or is it sufficient to create just one of them? Additionally, should I document the test cases in Notion?

nifedara commented 5 months ago

Hello, @kshitijrajsharma, Here's another PR: