aboutsummaryrefslogtreecommitdiff
path: root/test/git/test_base.py
AgeCommit message (Collapse)Author
2010-11-21flattened test folder structure, didn't adjust any file content yetSebastian Thiel
2010-11-15Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel
was mainly copy-paste from with_rw_repo, what a shame
2010-06-29Removed blob.data property as there is no real reason for an exception to ↵Sebastian Thiel
the rule of trying not to cache possibly heavy data. The data_stream method should be used instead
2010-06-29Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel
the submodules's naming conventions
2010-06-28All tests adjusted to work with the changed internal sha representationSebastian Thiel
2010-03-04Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel
2009-12-03repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel
safer to use in case of bare repositories
2009-11-26tree: added traversal method, adjusted testsSebastian Thiel
Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\!
2009-11-03object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel
as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
2009-10-22Added SymbolicReference and HEAD type to better represent these special ↵Sebastian Thiel
types of references and allow special handling Head.reset now is an instance method of HEAD type Concatenated all reference specific tests into test_refs started to fix tests breaking now because of changed interface
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-22Stream_data streams data to a given output stream most efficiently with a ↵Sebastian Thiel
low memory footprint. Still, the git-cat-file command keeps all data in an interal buffer instead of streaming it directly. This is a git design issue though, and will be hard to address without some proper git-hacking. Conflicts: lib/git/cmd.py
2009-10-22added Object.data_stream property allowing to stream object data ↵Sebastian Thiel
directly.Considering the implementation of the git commnd which temporarily keeps it in a cache, it doesnt make a huge diffence as the data is kept in memory while streaming. Only good thing is that it is in a different process so python will never see it if done properly
2009-10-16Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel
this was assumed - now there is a test for it as well repo: removed diff and commit_diff methods, added 'head' property returning the current head as Reference object
2009-10-15Added Commit.iter_parents to iterate all parentsSebastian Thiel
Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref )
2009-10-15All times are not stored as time_struct, but as simple int to consume less ↵Sebastian Thiel
memory time imports cleaned up and mostly removed as they were not required (anymore)
2009-10-14Refs are now truly dynamic - this costs a little bit of (persistent command) ↵Sebastian Thiel
work, but assures refs behave as expected
2009-10-14test_blob: removed many redundant tests that would fail now as the mock ↵Sebastian Thiel
cannot handle the complexity of the command backend All objects but Tree now use the persistent command to read their object information - Trees get binary data and would need their own pretty-printing or they need to parse the data themselves which is my favorite
2009-10-13unified name of utils module, recently it was named util and utils in ↵Sebastian Thiel
different packages
2009-10-12test_base: Improved basic object creation as well as set hash testsSebastian Thiel
2009-10-12Reorganized package structure and cleaned up importsSebastian Thiel
2009-10-11Added remaining tests for new base classes and removed some methods whose ↵Sebastian Thiel
existance was doubtful or unsafe
2009-10-11Re-designed the tag testing - it does not use fixtures anymore but ↵Sebastian Thiel
dyamically checks the existance of tags within the repository - it basically tests the interface and checks that expected return types are actually returned
2009-10-11Intermediate commit: commit,tree and blob objects now derive from object - ↵Sebastian Thiel
test is in place which still fails on purpose. Need to integrate tags which can be objects or just a special form of a ref