Passed
Push — main ( 242f40...8b1e40 )
by Alexander
01:29
created

TestMailboxAbstract.setUp()   A

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nop 1
dl 0
loc 10
rs 9.9
c 0
b 0
f 0
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
"""Module documentation goes here."""
5
6
7
import logging
8
import unittest
9
10
11
class TestMailboxAbstract(unittest.TestCase):
12
    """Class documentation goes here."""
13
    # pylint: disable=R0801
14
    class _Namespace:  # pylint: disable=R0903, R0801
15
        """Helper class for arguments."""
16
17
        def __init__(self, **kwargs):
18
            self.__dict__.update(kwargs)
19
20
    def setUp(self):
21
        logging.basicConfig(level=logging.DEBUG)
22
        self.args = self._Namespace(server='unknown.localhost',
23
                                    max_size=20,
24
                                    skip_download=False,
25
                                    detach=False,
26
                                    target='/tmp/mailbox_cleaner',
27
                                    upload='tests',
28
                                    folder='tests',
29
                                    reset_cache=True)
30