Last active
October 17, 2016 23:07
-
-
Save ahsan518/9558af91e2878f06dbe58e032e2bf7bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@ubuntu-xenial:~/craton$ tox -e py35 -- -s | |
py35 develop-inst-nodeps: /home/ubuntu/craton | |
py35 installed: alembic==0.8.8,aniso8601==1.1.0,appdirs==1.4.0,automaton==1.4.0,Babel==2.3.4,cachetools==2.0.0,chainmap==1.0.2,click==6.6,contextlib2==0.5.4,-e git+http://github.com/openstack/craton.git@4cafea5a54a352751436ad6417b7974e3fe7aab1#egg=craton,debtcollector==1.8.0,decorator==4.0.10,docutils==0.12,extras==1.0.0,fasteners==0.14.1,fixtures==1.4.0,flake8==3.0.4,Flask==0.11.1,Flask-RESTful==0.3.5,futurist==0.18.0,iso8601==0.1.11,itsdangerous==0.24,Jinja2==2.8,jsonschema==2.5.1,kazoo==2.2.1,keystoneauth1==2.13.0,linecache2==1.0.0,Mako==1.0.4,MarkupSafe==0.23,mccabe==0.5.2,mock==2.0.0,monotonic==1.2,mox3==0.18.0,msgpack-python==0.4.8,netaddr==0.7.18,netifaces==0.10.5,networkx==1.11,nose==1.3.7,os-client-config==1.21.1,oslo.config==3.17.0,oslo.context==2.9.0,oslo.db==4.13.3,oslo.i18n==3.9.0,oslo.log==3.16.0,oslo.middleware==3.19.0,oslo.serialization==2.13.0,oslo.utils==3.16.0,oslosphinx==4.7.0,oslotest==2.10.0,Paste==2.0.3,PasteDeploy==1.5.2,pbr==1.10.0,positional==1.1.1,prettytable==0.7.2,pycodestyle==2.0.0,pyflakes==1.2.3,Pygments==2.1.3,pyinotify==0.9.6,pyparsing==2.1.10,python-dateutil==2.5.3,python-editor==1.0.1,python-mimeparse==1.5.5,python-subunit==1.2.0,pytz==2016.7,PyYAML==3.12,requests==2.11.1,requestsexceptions==1.1.3,retrying==1.3.3,rfc3986==0.4.1,six==1.10.0,sortedcontainers==1.5.3,Sphinx==1.2.3,SQLAlchemy==1.0.15,sqlalchemy-migrate==0.10.0,SQLAlchemy-Utils==0.32.9,sqlparse==0.2.1,stevedore==1.17.1,taskflow==2.6.0,Tempita==0.5.2,testrepository==0.0.20,testscenarios==0.5.0,testtools==2.2.0,traceback2==1.4.0,unittest2==1.1.0,WebOb==1.6.1,Werkzeug==0.11.11,wrapt==1.10.8,zake==0.2.2 | |
py35 runtests: PYTHONHASHSEED='160712679' | |
py35 runtests: commands[0] | find . -type f -name *.pyc -delete | |
py35 runtests: commands[1] | nosetests -s | |
.....................................................................{'name': 'cell1', 'region_id': 1, 'data': {'key1': 'value1', 'key2': 'value2'}, 'project_id': 1} | |
........................................ | |
---------------------------------------------------------------------- | |
Ran 109 tests in 2.649s | |
OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 @mock.patch.object(dbapi, 'cells_update') | |
123 def test_update_cell(self, mock_cell): | |
124 ┆ mock_cell.return_value = fake_resources.CELL1 | |
125 ┆ payload = {'name': 'cell1_New', | |
~ 126 ┆ ┆ ┆ ┆ 'region_id': 5, | |
127 ┆ ┆ ┆ ┆ 'project_id': fake_resources.CELL1.project_id} | |
128 ┆ resp = self.put('v1/cells/1', data=payload) | |
+ 129 # self.assertEqual(resp.json, fake_resources.CELL1) | |
+ 130 ┆ print (resp.json) | |
131 ┆ self.assertEqual(200, resp.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment