~barryprice/juju-deployer/resolve-pep8-failures

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Running locally
---------------

To run juju-deployer while developing it, you can use:
  $ sudo python setup.py develop
  $ /usr/local/bin/juju-deployer

Alternatively you can run it directly with:

  $ PYTHONPATH=. python deployer/cli.py


Running unit tests
------------------

Tests can be run using tox, e.g.:

  $ tox         # run tests for all supported python versions
  $ tox -e py27 # run tests on python2.7


Running live environment tests
------------------------------

  $ juju bootstrap -e local
  $ JUJU_HOME=~/.juju \
      JUJU_ENV=$(juju switch) \
      TEST_ENDPOINT=`juju api-endpoints || juju show-controller --format json | python -c "import sys, json; j=json.loads(sys.stdin.read()); print(j[j.keys()[0]]['details']['api-endpoints'][0]);"` \
      nosetests -s --verbosity=2 deployer/tests/test_goenv.py