Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Tests changed so they now all work.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Aug 23, 2017
1 parent 8448fa5 commit 151e951
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions tests.txt
Expand Up @@ -11,14 +11,18 @@ Eggs are placed in our freshly created eggs directory:
>>> # Use a specific grok version, because 'current' will change at some
>>> # point in the future.
>>> executable = [os.path.join(current_dir, 'bin', 'grokproject')]
>>> base = open(os.path.join(current_dir, '.git', 'config')).read()
>>> base = base[base.find('url = ')+6:base.find('.git')]
>>> base = base.replace('github.com', 'raw.githubusercontent.com')
>>> cver = open(os.path.join(current_dir,'versions','current')).read().strip()
>>> opts = ['--user=a', '--passwd=a', '--eggs-dir=' + eggsdir]
>>> opts += ['--version-url=http://grok.zope.org/releaseinfo/1.3/versions.cfg']
>>> opts += ['--version-url='+base+'/master/versions/'+cver+'/versions.cfg']
>>> sh(executable + opts + ['GrokExample'])
['...grokproject',
'--user=a',
'--passwd=a',
'--eggs-dir=...grokproject-test-eggs',
'--version-url=http://grok.zope.org/releaseinfo/1.3/versions.cfg',
'--version-url=.../versions.cfg',
'GrokExample']...
Creating directory '...bin'.
Creating directory '...parts'.
Expand All @@ -40,8 +44,8 @@ Eggs are placed in our freshly created eggs directory:
Generated script '...i18ncompile'.
Installing mkdirs.
mkdirs: created path: ...var
mkdirs: created path: ...filestorage
mkdirs: created path: ...log
mkdirs: created path: ...filestorage
mkdirs: created path: ...blobstorage
Installing site_zcml.
Installing test.
Expand All @@ -54,8 +58,6 @@ Eggs are placed in our freshly created eggs directory:
Generated script '...zpasswd'.
Installing interactive_debugger.
Generated script '...interactive_debugger'.
Installing data.
Installing log.
*************** PICKED VERSIONS ****************
[versions]
<BLANKLINE>
Expand All @@ -70,7 +72,7 @@ Let's check the contents:
>>> package_dir = os.path.join(testdir, 'GrokExample')
>>> print open(os.path.join(package_dir, 'buildout.cfg')).read()
[buildout]
extends = http://grok.zope.org/releaseinfo/1.3/versions.cfg
extends = .../versions.cfg
extends-cache = extends-cache
include-site-packages = false
develop = .
Expand All @@ -84,7 +86,6 @@ Let's check the contents:
develop-eggs
etc
extends-cache
log
parts
setup.py
src
Expand Down Expand Up @@ -141,9 +142,11 @@ buildout files to support offline building. We know what the filename of the
cached versions file for 1.3 will look like:

>>> ls(os.path.join(package_dir, 'extends-cache'))
0e528124e9df4d3fad02dfc68147586e
354ba68f51f74190b8bfdc3d2686b6fb
b88291ed0762c9dcbc55c7a7c7176bb1
53773fe49c1e13bf0a6070f412fac6c9
6dffca5b8937d76ada3ae89aa6abc54c
d2e282ad4bee7d736a5a376f9122915c
dddbbc4b5727b127f12feec1c6a5e258
f4a1a4dddc7ffd4ccd6276adcff057a7

The password given is stored SSHA encoded:

Expand Down Expand Up @@ -246,7 +249,7 @@ We can see the status of translations calling bin/i18nstats:
>>> print output
Language Total Done Not Done Fuzzy Done %
==========================================================
de 3 1 1 1 33.33 %
de 2 1 1 0 50.00 %


Using the generated `test` script
Expand Down Expand Up @@ -300,8 +303,6 @@ first:
Updating zope_conf_deploy.
Updating zpasswd.
Updating interactive_debugger.
Updating data.
Updating log.
*************** PICKED VERSIONS ****************
[versions]
<BLANKLINE>
Expand Down

0 comments on commit 151e951

Please sign in to comment.