~cjwatson/click/fix-tests-installation

« back to all changes in this revision

Viewing changes to click/tests/integration/test_hook.py

  • Committer: Colin Watson
  • Date: 2014-09-04 13:57:36 UTC
  • Revision ID: cjwatson@canonical.com-20140904135736-t05iqgc6y9on6zxt
Call skipTest in ClickTestCase.setUp rather than using allow_integration helper everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import unittest
22
22
 
23
23
from .helpers import (
24
 
    allow_integration,
25
24
    ClickTestCase,
26
25
    is_root,
27
26
)
28
27
 
29
28
 
30
 
@unittest.skipIf(not allow_integration(), "Skipping integration tests")
31
29
@unittest.skipIf(not is_root(), "This tests needs to run as root")
32
30
class TestHook(ClickTestCase):
33
31
    def _make_hook(self, name):