Skip to content

Commit

Permalink
Tox fix and lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyli committed May 1, 2015
1 parent 630918f commit b82cfed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mimic/test/test_nova.py
Expand Up @@ -431,15 +431,13 @@ def create_servers(self, n, name_generation=None):
"""
Create ``n`` servers, returning a list of their server IDs.
"""
if name_generation is None:
name_generation = lambda i: "{0}".format(i)

resps = self.successResultOf(gatherResults([
json_request(
self, self.root, "POST", self.uri + '/servers',
json.dumps({
"server": {
"name": name_generation(i),
"name": ("{0}".format(i)if name_generation is None
else name_generation(i)),
"imageRef": "test-image",
"flavorRef": "test-flavor"
}
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -4,6 +4,7 @@ envlist = py26, py27, pypy, docs, lint
[testenv]
deps =
coverage==3.7.1
testtools==1.7.1
commands =
coverage erase
coverage run {envbindir}/trial --rterrors {posargs:mimic}
Expand Down

0 comments on commit b82cfed

Please sign in to comment.