ClimateMind / climatemind-backend

Your climate action is here 🌎 Our API is a source for learning how climate change personally affects you and the things you care about most. Additionally, it will teach a scientifically proven method for communicating to others that climate change is a personally relevant issue to inspire action.
https://contribute.climatemind.org/v/rest-api/
MIT License
18 stars 19 forks source link

test was written for questions in pytest to solve the issue #401 #477

Closed tadakongithub closed 1 year ago

tadakongithub commented 1 year ago

Detailed information:

Wrote a test in pytest in order to test the endpoint "/questions" in place of "questions.cy.js".

Closing issues:

List all issues the pull request solve:

Test plan (required)

codecov-commenter commented 1 year ago

Codecov Report

Base: 72.33% // Head: 72.30% // Decreases project coverage by -0.03% :warning:

Coverage data is based on head (c0e0549) compared to base (d1a5535). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #477 +/- ## =========================================== - Coverage 72.33% 72.30% -0.04% =========================================== Files 82 82 Lines 2639 2639 Branches 315 315 =========================================== - Hits 1909 1908 -1 Misses 695 695 - Partials 35 36 +1 ``` | [Impacted Files](https://codecov.io/gh/ClimateMind/climatemind-backend/pull/477?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ClimateMind) | Coverage Δ | | |---|---|---| | [app/scoring/tests/data.py](https://codecov.io/gh/ClimateMind/climatemind-backend/pull/477/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ClimateMind#diff-YXBwL3Njb3JpbmcvdGVzdHMvZGF0YS5weQ==) | `96.66% <0.00%> (-3.34%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ClimateMind). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ClimateMind)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

tadakongithub commented 1 year ago

Noted all above. Let me work on the suggestions.