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

test_cli.test_save()   A

Complexity

Conditions 2

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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