Passed
Push — develop ( 4d6495...2dddb7 )
by Jace
03:19
created

tests.test_main   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A describe_main() 0 5 1
1
# pylint: disable=unused-variable,expression-not-assigned
2
3
import subprocess
4
import sys
5
6
from expecter import expect
0 ignored issues
show
introduced by
Unable to import 'expecter'
Loading history...
7
8
9
def describe_main():
10
11
    def it_displays_version():
12
        code = subprocess.call([sys.executable, "-m", "gitman", "--version"])
13
        expect(code) == 0
14