Commits

Hugo Lopes Tavares committed 92bcaf3

now it uses a lightweight INITools svn repository (dump and load stuff)

Comments (0)

Files changed (3)

tests/local_repos.py

 
 
 def _dump_initools_repository():
-    filename, _ = urllib.urlretrieve('http://bitbucket.org/hltbra/pip-initools-dump/raw/d7a9beef1bbe/initools_colorstudy.dump')
+    filename, _ = urllib.urlretrieve('http://bitbucket.org/hltbra/pip-initools-dump/raw/8b55c908a320/INITools_modified.dump')
     initools_folder = os.path.join(_get_vcs_folder(), 'INITools')
     devnull = open(os.devnull, 'w')
     dump = open(filename)
     if vcs == 'svn':
         branch = os.path.basename(remote_repository)
         repository_name = os.path.basename(remote_repository[:-len(branch)-1]) # remove the slash
-        # the INITools svn repository has a tree including INITools folder
-        branch = 'INITools/' + branch
     else:
         repository_name = os.path.basename(remote_repository)
 

tests/test_freeze.py

     _check_output(result, expected)
     
     # Now lets try it with an svn checkout::
-    result = env.run('svn', 'co', '-r3472',
+    result = env.run('svn', 'co', '-r10',
                      local_repo('svn+http://svn.colorstudy.com/INITools/trunk'),
                      'initools-trunk')
     result = env.run('python', 'setup.py', 'develop',
     expected = textwrap.dedent("""\
         Script result: ...pip freeze
         -- stdout: --------------------
-        -e %s@3472#egg=INITools-0.2.1dev_r3472-py2...-dev_r3472
+        -e %s@10#egg=INITools-0.3.1dev_r10-py2...-dev_r10
         simplejson==1.7.4...
         <BLANKLINE>""" % local_checkout('svn+http://svn.colorstudy.com/INITools/trunk'))
     _check_output(result, expected)

tests/test_requirements.py

     """
     env = reset_env()
     write_file('initools-req.txt', textwrap.dedent("""\
-        -e %s@3139#egg=INITools-dev
+        -e %s@10#egg=INITools-dev
         -r simplejson-req.txt""" % local_checkout('http://svn.colorstudy.com/INITools/trunk')))
     write_file('simplejson-req.txt', textwrap.dedent("""\
         simplejson<=1.7.4