Skip to content

Commit

Permalink
Improve logging when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Nov 25, 2015
1 parent 666ae68 commit 7c9edd4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
import subprocess
import urllib
import urlparse
import logging
from tempfile import mkdtemp

from git_aggregator.utils import WorkingDirectoryKeeper,\
working_directory_keeper
from git_aggregator.repo import Repo

COMMIT_USER_NAME = 'Test'
COMMIT_USER_EMAIL = 'test@example.org'
COMMIT_USER_FULL = '%s %s' % (COMMIT_USER_NAME, COMMIT_USER_EMAIL)
from git_aggregator import main


def git_get_last_rev(repo_dir):
Expand Down Expand Up @@ -54,6 +52,11 @@ def path2url(path):

class TestRepo(unittest.TestCase):

@classmethod
def setUpClass(cls):
main.setup_logger(level=logging.DEBUG)
super(TestRepo, cls).setUpClass()

def setUp(self):
""" Setup
* remote1
Expand Down

0 comments on commit 7c9edd4

Please sign in to comment.