mirror of
https://github.com/progval/irctest.git
synced 2025-04-07 15:59:49 +00:00
make pyxmpp2-scram an optional dependency.
This commit is contained in:
@ -184,6 +184,7 @@ class SaslTestCase(
|
||||
m = self.negotiateCapabilities(["sasl"], False)
|
||||
self.assertEqual(m, Message({}, None, "CAP", ["END"]))
|
||||
|
||||
@pytest.mark.skipif(scram is None, reason="pyxmpp2-scram is not available")
|
||||
@cases.OptionalityHelper.skipUnlessHasMechanism("SCRAM-SHA-256")
|
||||
def testScram(self):
|
||||
"""Test SCRAM-SHA-256 authentication."""
|
||||
@ -226,6 +227,7 @@ class SaslTestCase(
|
||||
self.assertEqual(m.command, "AUTHENTICATE", m)
|
||||
self.assertEqual(m.params, ["+"], m)
|
||||
|
||||
@pytest.mark.skipif(scram is None, reason="pyxmpp2-scram is not available")
|
||||
@cases.OptionalityHelper.skipUnlessHasMechanism("SCRAM-SHA-256")
|
||||
def testScramBadPassword(self):
|
||||
"""Test SCRAM-SHA-256 authentication with a bad password."""
|
||||
|
Reference in New Issue
Block a user