summaryrefslogtreecommitdiff
path: root/test/testlib/helper.py
Commit message (Collapse)AuthorAgeFilesLines
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-234/+234
|
* index: added move method including testSebastian Thiel2010-02-191-0/+13
| | | | test.helpers: temporary rw repository creators now set the working dir of the program, easing working with relative paths a lot
* repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel2009-12-031-1/+1
| | | | safer to use in case of bare repositories
* Index tests adopted to windows - especially the symlink test needed ↵Sebastian Thiel2009-11-061-1/+1
| | | | adjustment, but it works as expected even on systems that do not support symlinks
* helper: repo creation functions now handle errors on windows during ↵Sebastian Thiel2009-11-051-5/+16
| | | | os.remove by changing the mode to 777 and delete the file again. Otherwise the whole operation would fail on read-only files. Why is windows as it is ? Why does it do that to me ?
* repo.clone: Added plenty of special handling to allow drive letters to work ↵Sebastian Thiel2009-11-051-1/+4
| | | | | | as expected. Its quite terrible to see a two-line method inflate to 20 as there is no git-daemon on windows, some tests will not work. The error message has been adjusted to be more precise for the poor people trying to run the tests on windows ( including myself )
* cmd: added clear_cache method now used by test repo decorators to be sure ↵Sebastian Thiel2009-11-051-0/+4
| | | | persistent commands are killed before trying to remove the directory. Unfortunately, it still claims someone has opened the file. handle.exe does not show anyone, so what is happening here ? Is it just a windows odity ? If nothing helps I could just keep the temp data, but lets do some more testing first
* improved error when setting up server based test to make clear a server ↵Sebastian Thiel2009-11-041-2/+10
| | | | needs to be started
* helpers: fixed and improved test repo decorators to use the new ↵Sebastian Thiel2009-11-041-2/+6
| | | | | | head.checkout functions for greater ease of use - they work exactly as expected now. Fixed failing test in remote tests by actually removing the line
* Tried to use shallow repository - this works in case it is remote, but ↵Sebastian Thiel2009-10-281-3/+32
| | | | unfortunately, deepening the repository fails if the server is used. This is bad, but a workaround is to create another shared repo which pushes a changes that we fetch into our given repo. This should provide more output to properly test the fetch handling. Harder than I thought
* put _make_file helper method into TestBase classSebastian Thiel2009-10-271-1/+12
| | | | remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
* Added reset method to Head - its a class method due to the very general ↵Sebastian Thiel2009-10-221-2/+2
| | | | nature of the command. Yet I don't really like the way you have to call it as repo has to be ṕassed as first arg
* Fixed decorator issue that would cause a function to be passed even though ↵Sebastian Thiel2009-10-221-2/+4
| | | | | | there is a default argument. This feels inconsistent as the 'argument passer' wrapper function can be called with a function or a string as first argument depending on whether the client code was explicitly passing an argument or not. That ... sucks. Now test for that case specifically and fail with a proper assertion error. I don't like it, but what can I do ... . Remote tests adjusted to use rw repositories instead. More tests to follow, and many api methods are to be implemented now these things can be tested properly.
* Implemented decorators, tests pass at leastSebastian Thiel2009-10-221-26/+44
|
* Added frame for new Repo handling and some neat decorators, including tests ↵Sebastian Thiel2009-10-221-0/+98
| | | | that test whether the testing framework does what it should
* diff method now checks for git-diff errrs that can easily occour if the ↵Sebastian Thiel2009-10-181-0/+6
| | | | repository is bare and if there is no index or second tree specified
* Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel2009-10-171-4/+28
| | | | is missing - these tests have to be redone in test-diff module accordingly
* cmd: added option to return the process directly, allowing to read the ↵Sebastian Thiel2009-10-141-0/+11
| | | | | | | output directly from the output stream commit: now reads commit information directly from the output stream of the process by implementing its iterator method repo: removed log method as it was redundant ( equal to the commits method )
* converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel2009-10-111-4/+4
| | | | editor to work with the files properly. Can convert it back for releaes
* Lots of spring cleaning and added in Sphinx documentation.Michael Trier2009-01-241-1/+1
|
* Added license information to all files.Michael Trier2008-07-161-0/+6
|
* style: remove spaces around parens per PEP8David Aguilar2008-06-011-1/+1
| | | | Signed-off-by: David Aguilar <davvid@gmail.com>
* tests: add a test for git.foo( istream=fh )David Aguilar2008-05-291-5/+8
| | | | | | | | | | This test runs the equivalent of: "git hash-object < fixtures/cat_file_blob" with the new istream mechanism and compares the computed hash. Signed-off-by: David Aguilar <davvid@gmail.com>
* Moved test stuff around and modified imports to just clean things up a bit.Michael Trier2008-05-071-0/+10