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

Fix issue #336 : Rewriting tests without altered cassette #370

Merged

Conversation

Kariss83
Copy link
Contributor

@Kariss83 Kariss83 commented Oct 5, 2022

I created two return mocks that are called and returns errors using the error that was previously in the casette output.
I've decided to put the mocks in tests/conftest.py, not sure that is the best place, let me know if something is more suitable.

@Kariss83 Kariss83 changed the title Fix issue ##336 : Rewriting tests without altered cassette Fix issue #336 : Rewriting tests without altered cassette Oct 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Merging #370 (463181f) into main (5a082f9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #370   +/-   ##
=======================================
  Coverage   94.55%   94.55%           
=======================================
  Files          75       75           
  Lines        3231     3231           
=======================================
  Hits         3055     3055           
  Misses        176      176           
Flag Coverage Δ
unittests 94.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@agateau-gg agateau-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this 👍. Made one remark but looks good overall.

tests/conftest.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@agateau-gg agateau-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now, thanks a lot!

@agateau-gg
Copy link
Collaborator

Can you rebase your branch on top of main to solve the conflicts? Once it's done I can merge this PR.

@Kariss83 Kariss83 force-pushed the rewriting-tests-without-altered-cassette branch from 985e8c3 to 70dc523 Compare October 7, 2022 13:48
@Kariss83
Copy link
Contributor Author

Kariss83 commented Oct 7, 2022

@agateau-gg I rebased and everything seems good on my side. It seems that all the checks fail due to functional tests but not mine. Let me know if I missed something.

@agateau-gg
Copy link
Collaborator

Yes, that's because the PR comes from a fork and so it does not have access to the required credentials to run the functional tests. We need to look into this.

Your code looks good, merging it. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants