~ubuntu-branches/ubuntu/utopic/click/utopic

« back to all changes in this revision

Viewing changes to tests/integration/test_build.py

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Daniel Holbach, Colin Watson, Michael Vogt
  • Date: 2014-09-06 12:06:31 UTC
  • Revision ID: package-import@ubuntu.com-20140906120631-k1h2va3ido1s3r56
Tags: 0.4.32
[ Daniel Holbach ]
* Run click-review after a successful build of a click package. Offer
  --no-validate as an option.

[ Colin Watson ]
* Move integration tests to a location where they won't end up being
  installed into inappropriate places on the system module path
  (LP: #1337696).
* Use six.with_metaclass for TestBuildCoreApps, so that it doesn't make
  pyflakes angry when running tests under Python 2.

[ Michael Vogt ]
* Add more integration tests for "click {list,register,verify,info}".
* Only install trusted click packages by default. To override you
  can run "pkcon --allow-untrusted" (LP: #1360582)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2014 Canonical Ltd.
2
 
# Author: Michael Vogt <michael.vogt@ubuntu.com>
3
 
 
4
 
# This program is free software: you can redistribute it and/or modify
5
 
# it under the terms of the GNU General Public License as published by
6
 
# the Free Software Foundation; version 3 of the License.
7
 
#
8
 
# This program is distributed in the hope that it will be useful,
9
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
# GNU General Public License for more details.
12
 
#
13
 
# You should have received a copy of the GNU General Public License
14
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 
16
 
"""Integration tests for the click CLI build command."""
17
 
 
18
 
import os
19
 
 
20
 
from .helpers import ClickTestCase
21
 
 
22
 
 
23
 
class TestBuild(ClickTestCase):
24
 
    def test_build(self):
25
 
        path_to_click = self._make_click()
26
 
        self.assertTrue(os.path.exists(path_to_click))