Skip to content

Commit 841dea7

Browse files
committed
Fix bug in the base MockHttp class which was there for a long time since
we incorrectly used class attribute value instead of the value passed to the method. This could result in all kinds of weird edge cases and test failures in case the environment wasn't correctly reset before / after each test.
1 parent 9e2a11d commit 841dea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libcloud/test/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def _get_method_name(self, type, use_param, qs, path):
205205
) # Python 3.7 no longer quotes ~
206206

207207
if type:
208-
meth_name = "{}_{}".format(meth_name, self.type)
208+
meth_name = "{}_{}".format(meth_name, type)
209209

210210
if use_param and use_param in qs:
211211
param = qs[use_param][0].replace(".", "_").replace("-", "_")

0 commit comments

Comments
 (0)