Skip to content

Commit

Permalink
Fix bug in the base MockHttp class which was there for a long time since
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kami committed Apr 16, 2024
1 parent 9e2a11d commit 841dea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcloud/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _get_method_name(self, type, use_param, qs, path):
) # Python 3.7 no longer quotes ~

if type:
meth_name = "{}_{}".format(meth_name, self.type)
meth_name = "{}_{}".format(meth_name, type)

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

0 comments on commit 841dea7

Please sign in to comment.