Commit Graph

8 Commits

Author SHA1 Message Date
David M. Carr
1abce70deb tests: add check for dulwich in test-url-parsing.py
Previously, if dulwich wasn't available, this test would fail with a traceback
(example included below).  This changeset makes it so that the test will be
skipped with an informative message if dulwich isn't available.

Traceback (most recent call last):
  File "/Users/carrd/hg-repos/hg-git-queue/tests/test-url-parsing.py", line 6, in <module>
    from hggit.git_handler import GitHandler
  File "/Users/carrd/hg-repos/hg-git-queue/tests/../hggit/__init__.py", line 42, in <module>
    import gitrepo, hgrepo
  File "/Users/carrd/hg-repos/hg-git-queue/tests/../hggit/gitrepo.py", line 13, in <module>
    from git_handler import GitHandler
  File "/Users/carrd/hg-repos/hg-git-queue/tests/../hggit/git_handler.py", line 4, in <module>
    from dulwich.errors import HangupException, GitProtocolError, UpdateRefsError
ImportError: No module named dulwich.errors
2012-10-30 23:16:07 -04:00
Augie Fackler
9ada7156ea test-url-parsing.py: add a test for a username that starts with a number
This had broken at some point, and it's currently fixed. Added a test
to keep it from regressing in the future.
2012-04-20 21:16:32 -05:00
Augie Fackler
ecc1e7635e test-url-parsing.py: stop manually enumerating test methods 2012-04-20 21:11:19 -05:00
Jason R. Coombs
c927a00fe4 Strip trailing slash for heroku-style URLs. Fixes #31. Includes a regression test for the fix. 2012-01-27 22:48:55 -05:00
Junichi OKADOME
41fa77794d to be recognized port number in path to repository 2011-07-13 17:51:16 +09:00
Augie Fackler
212cef6c15 test-url-parsing: defend against changes in dulwich 2010-07-05 11:47:34 -05:00
Abderrahim Kitouni
f2f0e03e94 fix running unit tests with the test runner 2009-11-23 19:10:32 +01:00
Augie Fackler
44d75ddc05 tests: inline unit tests into main test suite 2009-10-27 22:39:45 -04:00