summaryrefslogtreecommitdiff
path: root/test/git/test_base.py
Commit message (Collapse)AuthorAgeFilesLines
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-100/+0
|
* Optimized test-decorators, by completely removing with_bare_rw_repo, which ↵Sebastian Thiel2010-11-151-1/+1
| | | | was mainly copy-paste from with_rw_repo, what a shame
* Removed blob.data property as there is no real reason for an exception to ↵Sebastian Thiel2010-06-291-2/+0
| | | | the rule of trying not to cache possibly heavy data. The data_stream method should be used instead
* Renamed modules utils to util, and errors to exc to be more conforming to ↵Sebastian Thiel2010-06-291-1/+1
| | | | the submodules's naming conventions
* All tests adjusted to work with the changed internal sha representationSebastian Thiel2010-06-281-80/+84
|
* Converted all tabs to 4 space characters each to comply with pep8Sebastian Thiel2010-03-041-80/+80
|
* repo: renamed directories to more descriptive identifiers and made them ↵Sebastian Thiel2009-12-031-3/+3
| | | | safer to use in case of bare repositories
* tree: added traversal method, adjusted testsSebastian Thiel2009-11-261-6/+10
| | | | Fixed critical bug in object code: IndexObjects now use their path as hashkey, not the data\!
* object: renamed id attribute to sha as it in fact is always being rewritten ↵Sebastian Thiel2009-11-031-2/+2
| | | | as sha, even if the passed in id was a ref. This is done to assure objects are uniquely identified and will compare correctly
* Added SymbolicReference and HEAD type to better represent these special ↵Sebastian Thiel2009-10-221-45/+1
| | | | | | | | 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
* Added reset method to Head - its a class method due to the very general ↵Sebastian Thiel2009-10-221-0/+16
| | | | 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/+5
| | | | | | 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-1/+1
|
* Added frame for new Repo handling and some neat decorators, including tests ↵Sebastian Thiel2009-10-221-8/+18
| | | | that test whether the testing framework does what it should
* Stream_data streams data to a given output stream most efficiently with a ↵Sebastian Thiel2009-10-221-2/+11
| | | | | | | | | | | 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
* added Object.data_stream property allowing to stream object data ↵Sebastian Thiel2009-10-221-0/+5
| | | | 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
* Fixed object bug that would cause object ids not to be resolved to sha's as ↵Sebastian Thiel2009-10-161-0/+3
| | | | | | 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
* Added Commit.iter_parents to iterate all parentsSebastian Thiel2009-10-151-1/+1
| | | | | Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref )
* All times are not stored as time_struct, but as simple int to consume less ↵Sebastian Thiel2009-10-151-1/+0
| | | | | | memory time imports cleaned up and mostly removed as they were not required (anymore)
* Refs are now truly dynamic - this costs a little bit of (persistent command) ↵Sebastian Thiel2009-10-141-3/+4
| | | | work, but assures refs behave as expected
* test_blob: removed many redundant tests that would fail now as the mock ↵Sebastian Thiel2009-10-141-0/+10
| | | | | | 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
* unified name of utils module, recently it was named util and utils in ↵Sebastian Thiel2009-10-131-1/+1
| | | | different packages
* test_base: Improved basic object creation as well as set hash testsSebastian Thiel2009-10-121-4/+6
|
* Reorganized package structure and cleaned up importsSebastian Thiel2009-10-121-5/+7
|
* Added remaining tests for new base classes and removed some methods whose ↵Sebastian Thiel2009-10-111-7/+41
| | | | existance was doubtful or unsafe
* Re-designed the tag testing - it does not use fixtures anymore but ↵Sebastian Thiel2009-10-111-0/+8
| | | | dyamically checks the existance of tags within the repository - it basically tests the interface and checks that expected return types are actually returned
* Intermediate commit: commit,tree and blob objects now derive from object - ↵Sebastian Thiel2009-10-111-0/+36
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