[py-svn] r32944 - py/dist/py/path/svn/testing
guido at codespeak.net
guido at codespeak.net
Fri Oct 6 11:43:56 CEST 2006
Author: guido
Date: Fri Oct 6 11:43:54 2006
New Revision: 32944
Modified:
py/dist/py/path/svn/testing/test_urlcommand.py
py/dist/py/path/svn/testing/test_wccommand.py
Log:
Added some broken tests (currently disabled) to mark problems with character
handling in both svn urls and working copies.
Modified: py/dist/py/path/svn/testing/test_urlcommand.py
==============================================================================
--- py/dist/py/path/svn/testing/test_urlcommand.py (original)
+++ py/dist/py/path/svn/testing/test_urlcommand.py Fri Oct 6 11:43:54 2006
@@ -12,9 +12,28 @@
repo, wc = getrepowc()
cls.root = py.path.svnurl(repo)
- def test_svnurl_characters(self):
- test1 = py.path.svnurl("svn+ssh://hello/world")
+ def test_svnurl_characters_simple(self):
+ py.path.svnurl("svn+ssh://hello/world")
+
+ def test_svnurl_characters_at_user(self):
+ py.test.skip('XXX fix me')
+ py.path.svnurl("http://user@host.com/some/dir")
+
+ def test_svnurl_characters_at_path(self):
+ py.test.raises(ValueError, 'py.path.svnurl("http://host.com/foo@bar")')
+
+ def test_svnurl_characters_colon_port(self):
+ py.test.skip('XXX fix me')
+ py.path.svnurl("http://host.com:8080/some/dir")
+
+ def test_svnurl_characters_colon_path(self):
+ py.test.raises(ValueError, 'py.path.svnurl("http://host.com/foo:bar")')
+ def test_svnurl_characters_tilde_end(self):
+ py.test.skip('XXX fix me')
+ py.path.svnurl("http://host.com/some/file~")
+
+ # XXX
def xtest_copy_file(self):
raise py.test.Skipped(msg="XXX fix svnurl first")
@@ -29,7 +48,6 @@
t = gmtime(res[0].date)
assert t.tm_year == 2003 and t.tm_mon == 7 and t.tm_mday == 17
-
class TestSvnInfoCommand:
def test_svn_1_2(self):
Modified: py/dist/py/path/svn/testing/test_wccommand.py
==============================================================================
--- py/dist/py/path/svn/testing/test_wccommand.py (original)
+++ py/dist/py/path/svn/testing/test_wccommand.py Fri Oct 6 11:43:54 2006
@@ -299,5 +299,9 @@
def test_info(self):
self.wc.info().rev = 0
-def test_badchars():
+def test_characters_at():
py.test.raises(ValueError, "py.path.svnwc('/tmp/@@@:')")
+
+def test_characters_tilde():
+ py.test.skip('XXX fix me')
+ py.path.svnwc('/tmp/test~')
More information about the pytest-commit
mailing list