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

Replace cypress conversations.cy.js with PyTest integration test #390

Closed
danmash opened this issue Oct 12, 2022 · 2 comments · Fixed by #468
Closed

Replace cypress conversations.cy.js with PyTest integration test #390

danmash opened this issue Oct 12, 2022 · 2 comments · Fixed by #468

Comments

@danmash
Copy link
Member

danmash commented Oct 12, 2022

What should be tested?

Replace e2e cypress tests from cypress/e2e/conversations.cy.js with PyTest integration tests.

@danmash danmash moved this to 📋 Backlog in Climate Mind Web App Oct 18, 2022
@danmash danmash moved this from 📋 Backlog to To do in Climate Mind Web App Oct 18, 2022
cyplas pushed a commit that referenced this issue Oct 22, 2022
cyplas pushed a commit that referenced this issue Oct 22, 2022
cyplas pushed a commit that referenced this issue Oct 22, 2022
cyplas pushed a commit that referenced this issue Oct 22, 2022
@cyplas cyplas moved this from To do to 🏗 In progress in Climate Mind Web App Oct 22, 2022
cyplas pushed a commit that referenced this issue Oct 24, 2022
cyplas pushed a commit that referenced this issue Oct 24, 2022
cyplas pushed a commit that referenced this issue Oct 24, 2022
cyplas pushed a commit that referenced this issue Oct 24, 2022
cyplas pushed a commit that referenced this issue Oct 24, 2022
@danmash
Copy link
Member Author

danmash commented Nov 21, 2022

@cyplas let me know if you need any help on this

@cyplas
Copy link
Collaborator

cyplas commented Dec 5, 2022

@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.

cyplas pushed a commit that referenced this issue Dec 5, 2022
cyplas pushed a commit that referenced this issue Dec 5, 2022
cyplas pushed a commit that referenced this issue Dec 5, 2022
cyplas pushed a commit that referenced this issue Dec 5, 2022
cyplas pushed a commit that referenced this issue Dec 5, 2022
@cyplas cyplas linked a pull request Dec 5, 2022 that will close this issue
4 tasks
cyplas pushed a commit that referenced this issue Dec 6, 2022
cyplas pushed a commit that referenced this issue Dec 12, 2022
cyplas pushed a commit that referenced this issue Dec 12, 2022
cyplas pushed a commit that referenced this issue Dec 12, 2022
cyplas pushed a commit that referenced this issue Dec 12, 2022
cyplas pushed a commit that referenced this issue Dec 12, 2022
danmash pushed a commit that referenced this issue Dec 14, 2022
* #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>
Repository owner moved this from 🏗 In progress to ✅ Done in Climate Mind Web App Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants