tests.test_main.describe_main()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
# pylint: disable=unused-variable,expression-not-assigned
2
3
import subprocess
4
import sys
5
6
from expecter import expect
7
8
9
def describe_main():
10
    def it_displays_version():
11
        code = subprocess.call([sys.executable, "-m", "gitman", "--version"])
12
        expect(code) == 0
13