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 some test isolation issues #64

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Fix some test isolation issues #64

merged 1 commit into from
Feb 7, 2020

Conversation

ale-rt
Copy link
Member

@ale-rt ale-rt commented Feb 4, 2020

Fix a test isolation issue that was preventing the MOCK_MAILHOST_FIXTURE
to be used in multiple testcases (Fixes #61),

Properly configure the mail sender setting the appropriate registry
records (Fixes #62),

Adds test coverage.

@mister-roboto
Copy link

@ale-rt thanks for creating this Pull Request and help improve Plone!

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass.

Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:

@jenkins-plone-org please run jobs

With this simple comment all the jobs will be started automatically.

Happy hacking!

@ale-rt
Copy link
Member Author

ale-rt commented Feb 4, 2020

@jenkins-plone-org please run jobs

@ale-rt
Copy link
Member Author

ale-rt commented Feb 5, 2020

@jenkins-plone-org please run jobs

@coveralls
Copy link

coveralls commented Feb 5, 2020

Coverage Status

Coverage increased (+3.4%) to 58.103% when pulling e8ba5ff on isolation into 0395ca8 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 55.515% when pulling 84beb26 on isolation into 0395ca8 on master.

Fix a test isolation issue that was preventing the MOCK_MAILHOST_FIXTURE
to be used in multiple testcases (Fixes #61),

Properly configure the mail sender setting the appropriate registry
records (Fixes #62),

Adds test coverage.
@ale-rt
Copy link
Member Author

ale-rt commented Feb 5, 2020

@jenkins-plone-org please run jobs

@ale-rt
Copy link
Member Author

ale-rt commented Feb 6, 2020

It seems to me the failing robot test is unrelated

@ale-rt
Copy link
Member Author

ale-rt commented Feb 6, 2020

Failing build https://jenkins.plone.org/job/pull-request-5.2-3.7/842/
I restarted it, pending execution (URL should be https://jenkins.plone.org/job/pull-request-5.2-3.7/846)

Copy link
Member

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

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

One small comment inline, but looks good. I am happy to merge this. Thank you!

if not registry["plone.email_from_address"]:
registry["plone.email_from_address"] = "noreply@example.com"
if not registry["plone.email_from_name"]:
registry["plone.email_from_name"] = u"Plone site"
Copy link
Member

Choose a reason for hiding this comment

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

I have a small reservation: this changes the registry, but does not undo this after test teardown.
But that was already the case for the properties on the portal, so I guess it is no big deal.

Copy link
Member Author

Choose a reason for hiding this comment

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

I actually want to do that!
Thanks anyway!

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

Successfully merging this pull request may close these issues.

MockMailHostLayer isolation issues MockMailHostLayer is outdated
4 participants