-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Replace cypress conversations.cy.js with PyTest integration test #390
Comments
@cyplas let me know if you need any help on this |
@danmash I was a bit stuck on one test, as I couldn't figure out how the cypress test claimed to be returning 400 (https://github.com/ClimateMind/climatemind-backend/blob/develop/cypress/e2e/conversations.cy.js#L216) when my python equivalent was returning 500, as https://github.com/ClimateMind/climatemind-backend/blob/develop/app/conversations/routes.py#L64 yielded an AttributeError. But in the end I just tweaked the implementation of the route to check that the json is a dict, which makes the tests match and (if you agree) is better anyway. |
* #390 removed duplicate cypress test * #390 replaced empty conversations test with pytest * #390 lint * #390 transformed invalid invitee name tests * #390 transformed invalid session id test * #390 transformed single successful conversation creation * #390 transformed conversations test with multiple conversations * #390 lint * #390: added final test and tweaked route implementation * lint * #390: removed obsolete cypress function * #390: removed duplicate uuid validation function Co-authored-by: Cyprian Laskowski <cyp@cjvt.si>
What should be tested?
Replace e2e cypress tests from
cypress/e2e/conversations.cy.js
with PyTest integration tests.The text was updated successfully, but these errors were encountered: