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

ShowPrices doctest is failing #513

Merged
merged 4 commits into from
Dec 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Changelog

**Fixed**

- #513 ShowPrices doctest is failing
- #488 JS Errors in bika.lims.analysisrequest.js

**Security**



1.1.8 (2017-12-23)
------------------

Expand Down
3 changes: 3 additions & 0 deletions bika/lims/tests/doctests/ShowPrices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Needed Imports:
>>> from plone import api as ploneapi
>>> from plone.app.testing import setRoles
>>> from plone.app.testing import TEST_USER_ID
>>> from time import sleep
>>> import transaction

Functional Helpers:
Expand All @@ -36,10 +37,12 @@ Functional Helpers:
>>> def enableShowPrices():
... self.portal.bika_setup.setShowPrices(True)
... transaction.commit()
... sleep(1)

>>> def disableShowPrices():
... self.portal.bika_setup.setShowPrices(False)
... transaction.commit()
... sleep(1)

Variables:

Expand Down