We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731d7ed commit ceef99aCopy full SHA for ceef99a
tests/unit/test_plugin_ssh.py
@@ -187,11 +187,17 @@ def test_parse_target_address():
187
"ipv6": "c001:d00d::1337/128",
188
}
189
190
- test_namespace = argparse.Namespace(**{"6": False})
+ test_namespace = argparse.Namespace(**{"6": False, "d": False})
191
192
address = plugin.parse_target_address(test_namespace, test_target)
193
assert address == "123.123.123.123"
194
195
+ # Hack to work around invalid key
196
+ setattr(test_namespace, "d", True)
197
+
198
+ address = plugin.parse_target_address(test_namespace, test_target)
199
+ assert address == "123-123-123-123.ip.linodeusercontent.com"
200
201
# Hack to work around invalid key
202
setattr(test_namespace, "6", True)
203
0 commit comments