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

Improve use of mocks in somenergia_soci_tests #37

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Conversation

samuelpedrajas
Copy link
Contributor

Estàvem assignant els return_value dels mocks just després de fer la crida a la funció que voliem testejar. Degut a això, es va haver d'utilitzar mock.ANY a assert_called_with, perque els valors no eren els esperats.

Solució: moure l'assignament a return_value abans de la crida a la funció.

@github-actions
Copy link

github-actions bot commented Nov 21, 2022

Unit Test Results

186 tests   184 ✔️  30s ⏱️
    2 suites      2 💤
    2 files        0

Results for commit 1fd9e28.

♻️ This comment has been updated with latest results.

@MarJene MarJene merged commit 426040e into master Nov 22, 2022
@MarJene MarJene deleted the IMP_mailchimp_tests branch November 22, 2022 10:50
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