aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-07-18 15:25:43 +0200
committerJ08nY2017-07-18 15:25:43 +0200
commit23db01a1762c056a75c94d44177462dea0a383a1 (patch)
tree8c35bf21719e5596271afb8bdfd201ac18ab38c8
parent33e8fe52ea3dea2afe57af996df3d67dced344f4 (diff)
downloadmailman-pgp-23db01a1762c056a75c94d44177462dea0a383a1.tar.gz
mailman-pgp-23db01a1762c056a75c94d44177462dea0a383a1.tar.zst
mailman-pgp-23db01a1762c056a75c94d44177462dea0a383a1.zip
-rw-r--r--src/mailman_pgp/chains/tests/test_default.py2
-rw-r--r--src/mailman_pgp/commands/tests/test_key.py5
-rw-r--r--src/mailman_pgp/pgp/tests/test_inline.py5
-rw-r--r--src/mailman_pgp/pgp/tests/test_keygen.py2
-rw-r--r--src/mailman_pgp/pgp/tests/test_mime.py5
-rw-r--r--src/mailman_pgp/pgp/tests/test_wrapper.py5
-rw-r--r--src/mailman_pgp/workflows/tests/test_base.py5
-rw-r--r--src/mailman_pgp/workflows/tests/test_key_change.py2
-rw-r--r--src/mailman_pgp/workflows/tests/test_subscription.py2
9 files changed, 0 insertions, 33 deletions
diff --git a/src/mailman_pgp/chains/tests/test_default.py b/src/mailman_pgp/chains/tests/test_default.py
index 9176a3e..b369527 100644
--- a/src/mailman_pgp/chains/tests/test_default.py
+++ b/src/mailman_pgp/chains/tests/test_default.py
@@ -20,13 +20,11 @@ import unittest
from mailman.app.lifecycle import create_list
from mailman.email.message import Message
-from public import public
from mailman_pgp.chains.default import PGPChain
from mailman_pgp.testing.layers import PGPConfigLayer
-@public
class TestPGPChain(unittest.TestCase):
layer = PGPConfigLayer
diff --git a/src/mailman_pgp/commands/tests/test_key.py b/src/mailman_pgp/commands/tests/test_key.py
index 4642bb5..0125888 100644
--- a/src/mailman_pgp/commands/tests/test_key.py
+++ b/src/mailman_pgp/commands/tests/test_key.py
@@ -26,7 +26,6 @@ from mailman.interfaces.usermanager import IUserManager
from mailman.runners.command import CommandRunner
from mailman.testing.helpers import get_queue_messages, make_testable_runner
from mailman.utilities.datetime import now
-from public import public
from zope.component import getUtility
from mailman_pgp.config import mm_config
@@ -60,7 +59,6 @@ def _create_mixed(from_hdr, to_hdr, subject_hdr):
return message
-@public
class TestPreDispatch(unittest.TestCase):
layer = PGPConfigLayer
@@ -105,7 +103,6 @@ class TestPreDispatch(unittest.TestCase):
results_msg.get_payload())
-@public
class TestPreSubscription(unittest.TestCase):
layer = PGPConfigLayer
@@ -544,7 +541,6 @@ class TestPreSubscription(unittest.TestCase):
results_msg.get_payload())
-@public
class TestAfterSubscription(unittest.TestCase):
layer = PGPConfigLayer
@@ -749,7 +745,6 @@ class TestAfterSubscription(unittest.TestCase):
results_msg.get_payload())
-@public
class TestGeneral(unittest.TestCase):
layer = PGPConfigLayer
diff --git a/src/mailman_pgp/pgp/tests/test_inline.py b/src/mailman_pgp/pgp/tests/test_inline.py
index a89963a..0a012f7 100644
--- a/src/mailman_pgp/pgp/tests/test_inline.py
+++ b/src/mailman_pgp/pgp/tests/test_inline.py
@@ -18,7 +18,6 @@
"""Tests for the inline wrapper."""
from parameterized import parameterized
-from public import public
from mailman_pgp.pgp.inline import InlineWrapper
from mailman_pgp.pgp.tests.base import load_key, load_message, WrapperTestCase
@@ -28,7 +27,6 @@ class InlineWrapperTestCase(WrapperTestCase):
wrapper = InlineWrapper
-@public
class TestSigning(InlineWrapperTestCase):
@parameterized.expand([
(load_message('inline_cleartext_signed.eml'),
@@ -85,7 +83,6 @@ class TestSigning(InlineWrapperTestCase):
self.verify(message, key, valid)
-@public
class TestEncryption(InlineWrapperTestCase):
@parameterized.expand([
(load_message('inline_encrypted.eml'),
@@ -137,7 +134,6 @@ class TestEncryption(InlineWrapperTestCase):
self.decrypt(message, key, clear)
-@public
class TestKeys(InlineWrapperTestCase):
@parameterized.expand([
(load_message('inline_privkey.eml'),
@@ -162,7 +158,6 @@ class TestKeys(InlineWrapperTestCase):
self.keys(message, keys)
-@public
class TestCombined(InlineWrapperTestCase):
@parameterized.expand([
(load_message('clear.eml'),
diff --git a/src/mailman_pgp/pgp/tests/test_keygen.py b/src/mailman_pgp/pgp/tests/test_keygen.py
index 5c59614..dab6801 100644
--- a/src/mailman_pgp/pgp/tests/test_keygen.py
+++ b/src/mailman_pgp/pgp/tests/test_keygen.py
@@ -21,12 +21,10 @@ from unittest import TestCase
from pgpy import PGPKey
from pgpy.constants import PubKeyAlgorithm
-from public import public
from mailman_pgp.pgp.keygen import ListKeyGenerator
-@public
class TesKeygen(TestCase):
def setUp(self):
self.keypair_config = {
diff --git a/src/mailman_pgp/pgp/tests/test_mime.py b/src/mailman_pgp/pgp/tests/test_mime.py
index f56c781..b45d924 100644
--- a/src/mailman_pgp/pgp/tests/test_mime.py
+++ b/src/mailman_pgp/pgp/tests/test_mime.py
@@ -18,7 +18,6 @@
"""Tests for the MIME wrapper."""
from parameterized import parameterized
-from public import public
from mailman_pgp.pgp.mime import MIMEWrapper
from mailman_pgp.pgp.tests.base import load_key, load_message, WrapperTestCase
@@ -28,7 +27,6 @@ class MIMEWrapperTestCase(WrapperTestCase):
wrapper = MIMEWrapper
-@public
class TestSigning(MIMEWrapperTestCase):
@parameterized.expand([
(load_message('mime_signed.eml'),
@@ -73,7 +71,6 @@ class TestSigning(MIMEWrapperTestCase):
self.verify(message, key, valid)
-@public
class TestEncryption(MIMEWrapperTestCase):
@parameterized.expand([
(load_message('mime_encrypted.eml'),
@@ -117,7 +114,6 @@ class TestEncryption(MIMEWrapperTestCase):
self.decrypt(message, key, clear)
-@public
class TestKeys(MIMEWrapperTestCase):
@parameterized.expand([
(load_message('mime_privkey.eml'),
@@ -142,7 +138,6 @@ class TestKeys(MIMEWrapperTestCase):
self.keys(message, keys)
-@public
class TestCombined(MIMEWrapperTestCase):
@parameterized.expand([
(load_message('clear.eml'),
diff --git a/src/mailman_pgp/pgp/tests/test_wrapper.py b/src/mailman_pgp/pgp/tests/test_wrapper.py
index 14f40fc..6e8715c 100644
--- a/src/mailman_pgp/pgp/tests/test_wrapper.py
+++ b/src/mailman_pgp/pgp/tests/test_wrapper.py
@@ -17,7 +17,6 @@
"""Tests for the combined wrapper."""
from parameterized import parameterized
-from public import public
from mailman_pgp.pgp.tests.base import load_key, load_message, WrapperTestCase
from mailman_pgp.pgp.wrapper import PGPWrapper
@@ -27,7 +26,6 @@ class PGPWrapperTestCase(WrapperTestCase):
wrapper = PGPWrapper
-@public
class TestSigning(PGPWrapperTestCase):
@parameterized.expand([
(load_message('inline_cleartext_signed.eml'),
@@ -77,7 +75,6 @@ class TestSigning(PGPWrapperTestCase):
self.verify(message, key, valid)
-@public
class TestEncryption(PGPWrapperTestCase):
@parameterized.expand([
(load_message('inline_encrypted.eml'),
@@ -131,7 +128,6 @@ class TestEncryption(PGPWrapperTestCase):
self.decrypt(message, key, clear)
-@public
class TestKeys(PGPWrapperTestCase):
@parameterized.expand([
(load_message('inline_privkey.eml'),
@@ -166,7 +162,6 @@ class TestKeys(PGPWrapperTestCase):
self.keys(message, keys)
-@public
class TestCombined(PGPWrapperTestCase):
@parameterized.expand([
(load_message('clear.eml'),
diff --git a/src/mailman_pgp/workflows/tests/test_base.py b/src/mailman_pgp/workflows/tests/test_base.py
index 15ed833..109ece2 100644
--- a/src/mailman_pgp/workflows/tests/test_base.py
+++ b/src/mailman_pgp/workflows/tests/test_base.py
@@ -27,7 +27,6 @@ from mailman.interfaces.usermanager import IUserManager
from mailman.interfaces.workflows import IWorkflow
from mailman.testing.helpers import get_queue_messages
from mailman.workflows.common import SubscriptionBase
-from public import public
from zope.component import getUtility
from zope.interface import implementer
@@ -89,7 +88,6 @@ class PGPTestWorkflow(SubscriptionBase, PGPMixin, SetPubkeyMixin,
self.push('sanity_checks')
-@public
class TestPGPMixin(PubkeyMixinTestSetup, unittest.TestCase):
layer = PGPConfigLayer
@@ -109,7 +107,6 @@ class TestPGPMixin(PubkeyMixinTestSetup, unittest.TestCase):
self.assertIsNotNone(still)
-@public
class TestSetPubkeyMixin(PubkeyMixinTestSetup, unittest.TestCase):
layer = PGPConfigLayer
@@ -156,7 +153,6 @@ class TestSetPubkeyMixin(PubkeyMixinTestSetup, unittest.TestCase):
self.sender_key.fingerprint)
-@public
class TestConfirmPubkeyMixin(PubkeyMixinTestSetup, unittest.TestCase):
layer = PGPConfigLayer
@@ -197,7 +193,6 @@ class TestConfirmPubkeyMixin(PubkeyMixinTestSetup, unittest.TestCase):
step.assert_called_once_with()
-@public
class TestBothPubkeyMixins(PubkeyMixinTestSetup, unittest.TestCase):
layer = PGPConfigLayer
diff --git a/src/mailman_pgp/workflows/tests/test_key_change.py b/src/mailman_pgp/workflows/tests/test_key_change.py
index 5d61efd..8efeb58 100644
--- a/src/mailman_pgp/workflows/tests/test_key_change.py
+++ b/src/mailman_pgp/workflows/tests/test_key_change.py
@@ -23,7 +23,6 @@ from mailman.app.lifecycle import create_list
from mailman.interfaces.subscriptions import ISubscriptionManager, TokenOwner
from mailman.interfaces.usermanager import IUserManager
from mailman.testing.helpers import get_queue_messages
-from public import public
from zope.component import getUtility
from mailman_pgp.database import mm_transaction, transaction
@@ -35,7 +34,6 @@ from mailman_pgp.testing.layers import PGPConfigLayer
from mailman_pgp.workflows.key_change import KeyChangeWorkflow
-@public
class TestKeyChangeWorkflow(unittest.TestCase):
layer = PGPConfigLayer
diff --git a/src/mailman_pgp/workflows/tests/test_subscription.py b/src/mailman_pgp/workflows/tests/test_subscription.py
index f9fa1e1..9464a83 100644
--- a/src/mailman_pgp/workflows/tests/test_subscription.py
+++ b/src/mailman_pgp/workflows/tests/test_subscription.py
@@ -20,7 +20,6 @@ import unittest
from mailman.app.lifecycle import create_list
from mailman.interfaces.usermanager import IUserManager
-from public import public
from zope.component import getUtility
from mailman_pgp.database import mm_transaction
@@ -30,7 +29,6 @@ from mailman_pgp.workflows.subscription import (
ModerationSubscriptionPolicy, OpenSubscriptionPolicy)
-@public
class TestSubscriptionWorkflows(unittest.TestCase):
layer = PGPConfigLayer