Skip to content

Commit

Permalink
Adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Jun 27, 2020
1 parent 44a4f84 commit d573d76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/plone/recipe/zope2instance/tests/zope2instance.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1445,8 +1445,11 @@ Our environment variables should be set now::
>>> zope_conf = zope_conf.replace('\\', '/')
>>> import re
>>> env_vars = re.compile(r"<environment>\n\s*(?P<vars>.*)\n</environment>", re.M | re.S)
>>> re.search(env_vars, zope_conf).group('vars')
'TZ US/Eastern\nTMP /var/tmp\nDISABLE_PTS True'
>>> print(re.search(env_vars, zope_conf).group('vars'))
TZ US/Eastern
TMP /var/tmp
DISABLE_PTS True
CHAMELEON_CACHE .../var/cache

Several all on one line::

Expand Down
12 changes: 8 additions & 4 deletions src/plone/recipe/zope2instance/tests/zope2instance_zserver.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1737,8 +1737,10 @@ Our environment variables should be set now::
>>> zope_conf = zope_conf.replace('\\', '/')
>>> import re
>>> env_vars = re.compile(r"<environment>\n\s*(?P<vars>.*)\n</environment>", re.M | re.S)
>>> re.search(env_vars, zope_conf).group('vars')
'TZ US/Eastern\nTMP /var/tmp\nDISABLE_PTS True'
>>> print(re.search(env_vars, zope_conf).group('vars'))
TZ US/Eastern
TMP /var/tmp
DISABLE_PTS True

Several all on one line::

Expand Down Expand Up @@ -1770,8 +1772,10 @@ Our environment variables should be set now::
>>> instance = os.path.join(sample_buildout, 'parts', 'instance')
>>> zope_conf = open(os.path.join(instance, 'etc', 'zope.conf')).read()
>>> zope_conf = zope_conf.replace('\\', '/')
>>> re.search(env_vars, zope_conf).group('vars')
'TZ US/Eastern\nTMP /var/tmp\nDISABLE_PTS True'
>>> print(re.search(env_vars, zope_conf).group('vars'))
TZ US/Eastern
TMP /var/tmp
DISABLE_PTS True


HTTP server
Expand Down

0 comments on commit d573d76

Please sign in to comment.