summaryrefslogtreecommitdiff
path: root/test/testlib/helper.py
Commit message (Collapse)AuthorAgeFilesLines
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-245/+0
|
* testing:added special case for osx to solve a special issue with the temp ↵Sebastian Thiel2010-11-201-3/+10
| | | | directory
* Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel2010-11-151-38/+15
| | | | was mainly copy-paste from with_rw_repo, what a shame
* Moved test-centric windows specific fix into the class itself to assure this ↵Sebastian Thiel2010-07-111-7/+0
| | | | kind of issue doesn't popup for anyone
* win32 compatability adjustmentsunknown2010-07-021-0/+8
|
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-3/+12
|
* GitCmdStreamReader: fixed terrible bug which only kicked in if the stream ↵Sebastian Thiel2010-06-241-1/+4
| | | | | | was actually empty. This is a rare case that can happen during stream testing. Theoretically there shouldn't be any empty streams of course, but practically they do exist sometimes ;); fixed stream.seek implementation, which previously used seek on standard output Improved GitCmd error handling
* Multiple partly critical bugfixes related to index handlingSebastian Thiel2010-06-241-8/+9
|
* Tree-Writing now works after fixing an off-by-one errorSebastian Thiel2010-06-221-1/+5
|
* Removed odb from project, it is now used as a submodule named gitdb, which ↵Sebastian Thiel2010-06-121-22/+1
| | | | | | was added instead Adjusted all imports to deal with the changed package names
* Implemented stream tests, found a bug on the way, slowly a test-framework ↵Sebastian Thiel2010-06-041-207/+236
| | | | for streams starts to show up, but its not yet there
* commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel2010-06-021-32/+6
| | | | | | | performance is slightly better git.cmd: added method to provide access to the content stream directly. This is more efficient if large objects are handled, if it is actually used test.helpers: removed unnecessary code
* 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