Test Failed
Push — master ( ba1e2a...5767ef )
by Andrey
02:54
created

TestDf3Tools   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_full_cycle() 0 4 1
A tearDown() 0 5 3
1
import unittest
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
import glob
3
import os
4
5
from df3tools import df3split, df3combine
6
7
8
class TestDf3Tools(unittest.TestCase):
0 ignored issues
show
Coding Style introduced by
This class should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
9
10
    def tearDown(self):
11
        for filename in glob.glob("*.tga"):
12
            os.remove(filename)
13
        for filename in glob.glob("*.df3"):
14
            os.remove(filename)
15
16
    def test_full_cycle(self):
0 ignored issues
show
Coding Style introduced by
This method should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
17
        df3split.df3split('data/clouds.df3')
18
        self.assertEqual(len(glob.glob("*.tga")), 133)
19
        df3combine.df3combine('clouds.df3')
20