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

tests.parse_args_test   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_parse_args() 0 5 2
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