twoq / thingpipe / tests / test_lazy_man.py

# -*- coding: utf-8 -*-
'''manpipe tests'''

from thingpipe.compat import unittest

from thingpipe.tests.man.mapping import *  # @UnusedWildImport
from thingpipe.tests.man.ordering import *  # @UnusedWildImport
from thingpipe.tests.man.reducing import *  # @UnusedWildImport
from thingpipe.tests.man.filtering import *  # @UnusedWildImport
from thingpipe.tests.man.transforming import *  # @UnusedWildImport
from thingpipe.tests.man.manning import Manning
from thingpipe.tests.man.queuing import MQMixin


class TestManQ(
    Manning, MQMixin, MFilterQMixin, MMapQMixin, MReduceQMixin, MOrderQMixin,
):

    def setUp(self):
        from thingpipe.lazy import manpipe
        self.qclass = manpipe


class TestManFilterQ(Manning, MFilterQMixin):

    def setUp(self):
        self.maxDiff = None
        from thingpipe.lazy import mfilterpipe
        self.qclass = mfilterpipe


class TestManSliceQ(Manning, MQMixin, MSliceQMixin):

    def setUp(self):
        from thingpipe.lazy import mslicepipe
        self.qclass = mslicepipe


class TestManCollectQ(Manning, MQMixin, MCollectQMixin):

    def setUp(self):
        from thingpipe.lazy import mcollectpipe
        self.qclass = mcollectpipe


class TestManSetQ(Manning, MQMixin, MSetQMixin):

    def setUp(self):
        from thingpipe.lazy import msetpipe
        self.qclass = msetpipe


class TestManMap(Manning, MQMixin, MMapQMixin):

    def setUp(self):
        from thingpipe.lazy import mmappipe
        self.qclass = mmappipe


class TestManRepeatQ(Manning, MQMixin, MRepeatQMixin):

    def setUp(self):
        from thingpipe.lazy import mrepeatpipe
        self.qclass = mrepeatpipe


class TestManOrderQ(Manning, MQMixin, MOrderQMixin):

    def setUp(self):
        from thingpipe.lazy import morderpipe
        self.qclass = morderpipe


class TestManRandomQ(Manning, MQMixin, MRandomQMixin):

    def setUp(self):
        from thingpipe.lazy import mrandompipe
        self.qclass = mrandompipe


class TestManReduceQ(Manning, MQMixin, MReduceQMixin):

    def setUp(self):
        from thingpipe.lazy import mreducepipe
        self.qclass = mreducepipe


class TestManMathQ(Manning, MQMixin, MMathQMixin):

    def setUp(self):
        from thingpipe.lazy import mmathpipe
        self.qclass = mmathpipe


class TestManTruthQ(Manning, MQMixin, MTruthQMixin):

    def setUp(self):
        from thingpipe.lazy import mtruthpipe
        self.qclass = mtruthpipe


class TestStringQ(Manning, MQMixin, MStringQMixin):

    def setUp(self):
        from thingpipe.active import stringpipe
        self.qclass = stringpipe


class TestTransformQ(Manning, MQMixin, MStringQMixin):

    def setUp(self):
        from thingpipe.active import transformpipe
        self.qclass = transformpipe

if __name__ == '__main__':
    unittest.main()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.