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

Adding Test cases for backend #119

Merged
merged 38 commits into from
Nov 3, 2021
Merged

Adding Test cases for backend #119

merged 38 commits into from
Nov 3, 2021

Conversation

peeyush10234
Copy link

No description provided.

snapcat and others added 30 commits October 22, 2021 20:35
run: pylint --fail-under=1 $(find . -name "*.py" | xargs)
note: set the failure threshold as indicated above

actions/starter-workflows#636 (comment)
* Added CodeQL badge
* Added Pylint badge
* Minor edits: updated git clone steps
 All for the sake of a test badge.
@netlify
Copy link

netlify bot commented Nov 2, 2021

✔️ Deploy Preview for feature-hunt-25 ready!

🔨 Explore the source changes: 2012082

🔍 Inspect the deploy log: https://app.netlify.com/sites/feature-hunt-25/deploys/6181c2f8a1ca0000087b6b36

😎 Browse the preview: https://deploy-preview-119--feature-hunt-25.netlify.app

@coveralls
Copy link

coveralls commented Nov 2, 2021

Pull Request Test Coverage Report for Build 1414475856

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 24.852%

Totals Coverage Status
Change from base Build 1413635756: 0.0%
Covered Lines: 64
Relevant Lines: 211

💛 - Coveralls

* Restored and commented out unused tests
* Added pylint skip comments
@jhnguye4 jhnguye4 merged commit 7faa72e into main Nov 3, 2021
@jhnguye4
Copy link

jhnguye4 commented Nov 3, 2021

merging backend

snapcat added a commit that referenced this pull request Nov 3, 2021
snapcat added a commit that referenced this pull request Nov 3, 2021
@snapcat
Copy link

snapcat commented Nov 14, 2021

Discussion:

Peeyush — 11/02/2021
So I fixed the failing test cases on the backend side, there were 3 failing test cases for auth-controller class.
Test Name
test_login_wrong_email
test_login_missing_password
test_login_missing_email
Now we have all the test cases passing on backend

jhnguye4 — 11/02/2021
what were the failing issues for these test cases?
And what did you do to fix them?

Peeyush — 11/02/2021
For all the above three test cases, the expected response was 403 because the input response is wrong, but I was getting 200, so I first merge Emily changes into my branch and added a if condition which checks for malformed input response. Now we are seeing the expected response

Leila Moran — 11/02/2021
@ Peeyush did you add your test cases to backend or just backend-new?

Peeyush — 11/02/2021
These test cases are for auth controller class which is in present in both backend and backend-new (Copy). I am currently merging theses two directories into a single backend directory. This will stop all confusion.

Leila Moran — 11/02/2021
I'm going to restore the removed tests but have them commented out. I'm also adding pylint skip comments.

Peeyush — 11/02/2021
Actually those are hard coded tests, which tests no functionality. You can restore them if you want but they are of no use.
And thanks for the pylint skip comments

Leila Moran — 11/02/2021
I know, it's just that they were written by the previous group and I'd rather not delete any of their code if it can be helped.

Peeyush — 11/02/2021
ok fine with me, could you approve the PR after that ?

Leila Moran — 11/02/2021
@ Peeyush
Have these issues been fixed?
#111
#112

If they have, I'll link them to your PR.

Peeyush — 11/02/2021
Yes @ Leila Moran , these are resolved in this PR

@snapcat snapcat linked an issue Nov 15, 2021 that may be closed by this pull request
Sumedh-Patkar pushed a commit to Sumedh-Patkar/feature-hunt that referenced this pull request Nov 28, 2023
* added pylint workflow w/artifacts

run: pylint --fail-under=1 $(find . -name "*.py" | xargs)
note: set the failure threshold as indicated above

actions/starter-workflows#636 (comment)

* Added CodeQL & Pylint badges, edits

* Added CodeQL badge
* Added Pylint badge
* Minor edits: updated git clone steps

* Lowered pylint failure theshold

* Update and rename build.yml to coveralls.yml

* Added test files to pylint.yml

* Updated py files to improve pylint score

* Fixed error in coveralls.yml

* Removed individual tests in pylint.yml

* Added pylint labels

* Added test workflow

* Update and rename nodejsTest.yml to nodejs.yml

* Update nodejs.yml

* Update nodejs.yml

* Added workflow build badge to README

* Added yet another workflow

 All for the sake of a test badge.

* Added test badge

* Revert "group25 workflows"

* Added post to Service.js and connected login form (incomplete)

* Added appropriate error messages and display for errors

* Added Sign up form

* Added error handling and redirecting for login and sign up

* fix to react compile warning

* Dashboard and tag edits are now limited by user

* New tags can now be saved in the database

* Adding Product Controller and Test Cases

* Adding more user auth and product auth test cases

* Changing gitignore

* Fixing test cases for user-auth class

* Removing test cases which are not used

* Commented out unused tests, added pylint comments

* Restored and commented out unused tests
* Added pylint skip comments

Co-authored-by: Leila Moran <lmmoran@ncsu.edu>
Co-authored-by: Emily Tracey <etracey@ncsu.edu>
Co-authored-by: peeyush10234 <ptaneja@ncsu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants