aboutsummaryrefslogtreecommitdiff
path: root/test/testlib
AgeCommit message (Collapse)Author
2010-07-11Moved test-centric windows specific fix into the class itself to assure this ↵Sebastian Thiel
kind of issue doesn't popup for anyone
2010-07-02win32 compatability adjustmentsunknown
2010-06-28All tests adjusted to work with the changed internal sha representationSebastian Thiel
2010-06-24GitCmdStreamReader: fixed terrible bug which only kicked in if the stream ↵Sebastian Thiel
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
2010-06-24Multiple partly critical bugfixes related to index handlingSebastian Thiel
2010-06-22Tree-Writing now works after fixing an off-by-one errorSebastian Thiel
2010-06-12Removed odb from project, it is now used as a submodule named gitdb, which ↵Sebastian Thiel
was added instead Adjusted all imports to deal with the changed package names
2010-06-04Implemented stream tests, found a bug on the way, slowly a test-framework ↵Sebastian Thiel
for streams starts to show up, but its not yet there
2010-06-02commit: refactored existing code to decode commits from streams - ↵Sebastian Thiel
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
2010-03-04Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel
2010-02-19index: added move method including testSebastian Thiel
test.helpers: temporary rw repository creators now set the working dir of the program, easing working with relative paths a lot
2009-12-03repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel
safer to use in case of bare repositories
2009-11-06Index tests adopted to windows - especially the symlink test needed ↵Sebastian Thiel
adjustment, but it works as expected even on systems that do not support symlinks
2009-11-05helper: repo creation functions now handle errors on windows during ↵Sebastian Thiel
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 ?
2009-11-05repo.clone: Added plenty of special handling to allow drive letters to work ↵Sebastian Thiel
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 )
2009-11-05cmd: added clear_cache method now used by test repo decorators to be sure ↵Sebastian Thiel
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
2009-11-04improved error when setting up server based test to make clear a server ↵Sebastian Thiel
needs to be started
2009-11-04helpers: fixed and improved test repo decorators to use the new ↵Sebastian Thiel
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
2009-10-28Tried to use shallow repository - this works in case it is remote, but ↵Sebastian Thiel
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
2009-10-27put _make_file helper method into TestBase classSebastian Thiel
remote: prepared FetchInfo class to be returned by fetch and pull. About to implement tests
2009-10-22Added reset method to Head - its a class method due to the very general ↵Sebastian Thiel
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
2009-10-22Fixed decorator issue that would cause a function to be passed even though ↵Sebastian Thiel
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.
2009-10-22Implemented decorators, tests pass at leastSebastian Thiel
2009-10-22Added frame for new Repo handling and some neat decorators, including tests ↵Sebastian Thiel
that test whether the testing framework does what it should
2009-10-18diff method now checks for git-diff errrs that can easily occour if the ↵Sebastian Thiel
repository is bare and if there is no index or second tree specified
2009-10-17Removed a few diff-related test cases that fail now as the respective method ↵Sebastian Thiel
is missing - these tests have to be redone in test-diff module accordingly
2009-10-14cmd: added option to return the process directly, allowing to read the ↵Sebastian Thiel
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 )
2009-10-12tree: now behaves like a list with string indexing functionality - using a ↵Sebastian Thiel
dict as cache is a problem as the tree is ordered, added blobs, trees and traverse method repo: remove blob function as blobs are created directly or iterated - primitve types should not clutter the repo interface
2009-10-11Fixed remaining tests to deal with the changesSebastian Thiel
mode is now generally an int compatible to the stat module
2009-10-11fixed issue in Ref.name implementation which would not handle components ↵Sebastian Thiel
properly
2009-10-11converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my ↵Sebastian Thiel
editor to work with the files properly. Can convert it back for releaes
2009-01-24Lots of spring cleaning and added in Sphinx documentation.Michael Trier
2008-07-16Added license information to all files.Michael Trier
2008-06-01style: remove spaces around parens per PEP8David Aguilar
Signed-off-by: David Aguilar <davvid@gmail.com>
2008-05-29tests: add a test for git.foo( istream=fh )David Aguilar
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>
2008-05-07Moved test stuff around and modified imports to just clean things up a bit.Michael Trier