summaryrefslogtreecommitdiff
path: root/gitdb/test/performance
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-08 17:34:53 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-08 17:34:53 +0100
commit7bde7b098b07291227fcbc4eb900ebf13c9191a2 (patch)
treea368f0bc387f8ed7c987c7efd8e77094846e17f8 /gitdb/test/performance
parentbe294278a0087f21d565a1084fb220ff936ae0bd (diff)
downloadgitdb-7bde7b098b07291227fcbc4eb900ebf13c9191a2.tar.gz
Fixed up tests to use the GITDB_TEST_GIT_REPO_BASE at all times
I have verified that all tests are working, even without a parent git repository, as long as the said environment variable is set. Fixes #16
Diffstat (limited to 'gitdb/test/performance')
-rw-r--r--gitdb/test/performance/lib.py30
1 files changed, 2 insertions, 28 deletions
diff --git a/gitdb/test/performance/lib.py b/gitdb/test/performance/lib.py
index cbc52bc..fa4dd20 100644
--- a/gitdb/test/performance/lib.py
+++ b/gitdb/test/performance/lib.py
@@ -3,41 +3,15 @@
# This module is part of GitDB and is released under
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
"""Contains library functions"""
-import os
-import logging
from gitdb.test.lib import TestBase
-#{ Invvariants
-k_env_git_repo = "GITDB_TEST_GIT_REPO_BASE"
-#} END invariants
-
#{ Base Classes
class TestBigRepoR(TestBase):
-
- """TestCase providing access to readonly 'big' repositories using the following
- member variables:
-
- * gitrepopath
-
- * read-only base path of the git source repository, i.e. .../git/.git"""
-
- def setUp(self):
- try:
- super(TestBigRepoR, self).setUp()
- except AttributeError:
- pass
-
- self.gitrepopath = os.environ.get(k_env_git_repo)
- if not self.gitrepopath:
- logging.info(
- "You can set the %s environment variable to a .git repository of your choice - defaulting to the gitdb repository", k_env_git_repo)
- ospd = os.path.dirname
- self.gitrepopath = os.path.join(ospd(ospd(ospd(ospd(__file__)))), '.git')
- # end assure gitrepo is set
- assert self.gitrepopath.endswith('.git')
+ """A placeholder in case we want to add additional functionality to all performance test-cases
+ """
#} END base classes