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

Mock the Fedora Messaging calls in the unit tests #860

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

abompard
Copy link
Member

This should make the tests much faster since they won't wait for the publish timeout anymore.

@Zlopez
Copy link
Contributor

Zlopez commented Dec 16, 2019

Could you fix the formatting issue? And could you add news file for this change PR860.dev?

@nphilipp nphilipp self-assigned this Dec 16, 2019
@nphilipp
Copy link
Member

Could you fix the formatting issue? And could you add news file for this change PR860.dev?

On it, this unblocks a couple other PRs whose CI tests fail.

@nphilipp nphilipp force-pushed the mock-fm-in-unit-tests branch 2 times, most recently from f4a9683 to cfcb418 Compare December 16, 2019 10:05
abompard and others added 2 commits December 16, 2019 11:44
This should make the tests much faster since they won't wait for the
publish timeout anymore.

Signed-off-by: Aurélien Bompard <[email protected]>
Just for completeness sake...

Signed-off-by: Nils Philippsen <[email protected]>
@Zlopez
Copy link
Contributor

Zlopez commented Dec 16, 2019

It looks like some of the mocks are still missing.

@nphilipp
Copy link
Member

I've come across a couple of places where messaging calls still need to be mocked out. Stay tuned.

@nphilipp nphilipp force-pushed the mock-fm-in-unit-tests branch from cfcb418 to 2de1f16 Compare December 16, 2019 11:42
@codecov-io
Copy link

codecov-io commented Dec 16, 2019

Codecov Report

Merging #860 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #860   +/-   ##
=======================================
  Coverage   97.33%   97.33%           
=======================================
  Files          61       61           
  Lines        3674     3674           
  Branches      497      497           
=======================================
  Hits         3576     3576           
  Misses         58       58           
  Partials       40       40

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d491343...2de1f16. Read the comment docs.

Copy link
Contributor

@Zlopez Zlopez left a comment

Choose a reason for hiding this comment

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

LGTM

@Zlopez
Copy link
Contributor

Zlopez commented Dec 16, 2019

@Mergifyio refresh

@mergify mergify bot merged commit 42bf6b6 into fedora-infra:master Dec 16, 2019
@mergify
Copy link
Contributor

mergify bot commented Dec 16, 2019

Command refresh: success

Hey, I reacted but my real name is @Mergifyio

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.

4 participants