Passed
Push — main ( 989b39...f92153 )
by J
01:39
created

tests.parse_args_test.test_parse_args()   A

Complexity

Conditions 2

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 2
nop 0
1
# -*- coding: utf-8 -*-
2
import sys
3
from unittest.mock import patch
4
5
from devenv.devenv import parse_args
6
7
8
def test_parse_args():
9
    with patch.object(sys, "argv", ["devenv", "python", "devenv"]):
10
        args = parse_args()
11
        assert args.lang == "python"
12
        assert args.name == "devenv"
13