Passed
Push — main ( be7884...25608f )
by Eran
01:51
created

test_cli   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 3

2 Functions

Rating   Name   Duplication   Size   Complexity  
A test_save() 0 4 2
A runner() 0 3 1
1
import pytest
2
from click.testing import CliRunner
3
4
from graphinate.cli import cli
5
6
7
@pytest.fixture()
8
def runner():
9
    return CliRunner()
10
11
12
def test_save(octagonal_graph_model, runner):
13
    with runner.isolated_filesystem():
14
        result = runner.invoke(cli, ['save', '-m', octagonal_graph_model])
15
        assert result.exit_code == 0
16