Completed
Push — master ( caabd8...c07396 )
by Oleksandr
01:11
created

il2fb.parsers.mission.sections.WingParser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A il2fb.parsers.mission.sections.WingSectionParser.clean() 0 2 1
A il2fb.parsers.mission.sections.WingSectionParser.check_section_name() 0 2 1
1
# -*- coding: utf-8 -*-
2
3 1
from . import CollectingParser
4
5
6 1
class WingSectionParser(CollectingParser):
7
    """
8
    Parses ``Wing`` section.
9
    View :ref:`detailed description <wing-section>`.
10
    """
11
12 1
    def check_section_name(self, section_name):
13 1
        return section_name == "Wing"
14
15 1
    def clean(self):
16
        return {'flights': self.data}
17