repo_id string | cross_repo_split string | commit_index int32 | commit_sha string | in_repo_split string | test_file string | file_split string | split_group string | lineno int32 | col_offset int32 | assertion_type string | test_function string | prefix large_string | target string | assertion_event_type string | assertion_event_id string | assertion_anchor large_string | old_target string | old_lineno int32 | old_col_offset int32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
xflr6/graphviz | train | 221 | 079142d48ec16e60ed043001ba9fd58d04c715cf | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 132 | 4 | assert_* | test_render_mocked | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | mock_save.return_value) | added | ccb2d9490b0b98c7e0577cbb2ad26d79a6beb3e8dced4442e37b981e1686ae05 | assert_*|test_render_mocked|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 23 | 4 | assert | test_copy | import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return cls()
def tes... | type(dot) | added | 4fa55763b023306ac6f92bdc5a7c6d7b9e303425f213ddc581fb7294bce7911d | assert|test_copy|import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') return cls() def test_copy(cls... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 38 | 9 | pytest.raises | test_invalid_parameter_raises_valuerror | import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return cls()
def tes... | ValueError, match=match) | added | 988460774d21a7cd4e689805c0ec7fb74c2f4c1d66c4f46af686680e8a609488 | pytest.raises|test_invalid_parameter_raises_valuerror|import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 45 | 4 | assert | test_repr_svg_mocked | import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return cls()
def tes... | mock_pipe.return_value | added | dd718054cc74d975c59474ef871344f1944a45c7fb4f67fed51cd0ad744dd5e9 | assert|test_repr_svg_mocked|import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') return cls() def te... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 121 | 4 | assert | test_render_raises_before_save | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | not expected_source.exists() | added | c59a2700133659c7172b00055fcb4c92b0f6a8f0edbf29da6b0f299f860e35d5 | assert|test_render_raises_before_save|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__},... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 250 | 8 | assert | test_subgraph_graph_none | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | dot.encoding | added | ab403d5e2aaba7db4136ba58364e363d0be62c9cd505998f4d81fb022a91a99b | assert|test_subgraph_graph_none|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1]... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 257 | 9 | pytest.raises | test_subgraph_graph_notsole | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=r'sole') | added | 3dd1b11eaffdae16a473698b3af60f987641fd0ebefa17d77d29e1e3f5182849 | pytest.raises|test_subgraph_graph_notsole|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name... | null | null | null |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 60 | 4 | assert | test_unflatten | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | 'digraph { hello -> world; }' | modified | 978da50bef3d0a6877a3a62f3d9a46a7e9b8ca322db5c3250be85f64c8cd7f18 | assert|test_unflatten|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pyt... | isinstance(result, graphviz.Source) | 61 | 4 |
xflr6/graphviz | train | 222 | 324e8faf0030ee438bf0942a99004879e315c30f | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 69 | 4 | assert_* | test_pipe_lines_format_mocked | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | mocker.ANY) | added | 928009e228992ac1acdf7c37bcdf54c41ce919678b50e7d5a8092e1077406f6f | assert_*|test_pipe_lines_format_mocked|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Sour... | null | null | null |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 23 | 4 | assert | test_copy | import locale
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return c... | dot.copy() | modified | 44dc0050c6a1d2d199ee7decce6d4cab63c57f4364546beca9823fe23b1d5cc1 | assert|test_copy|import locale import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') return cls() def... | dot.copy() | 22 | 4 |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 29 | 4 | assert | test_str | import locale
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return c... | dot.source | modified | 18a9e4cc7517fbd49a2375cf19ebb867699269055982527981b2e0ab0cb14512 | assert|test_str|import locale import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') return cls() def ... | dot.source | 28 | 4 |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 39 | 9 | pytest.raises | test_invalid_parameter_raises_valuerror | import locale
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return c... | ValueError, match=match) | modified | 3b2c301ef7c47b72e74ed2e254240f5ef0831bd183e2788b2a673337e8f52732 | pytest.raises|test_invalid_parameter_raises_valuerror|import locale import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { ... | ValueError, match=match) | 38 | 9 |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 46 | 4 | assert | test_encoding_none | import locale
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
return c... | locale.getpreferredencoding() | added | d30ccf5d8d93b77680441c8c625553d2fa29b8c84202cc3f5baf1999ff41ab1d | assert|test_encoding_none|import locale import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') return ... | null | null | null |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 38 | 4 | assert | test_init | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | SOURCE['filename'] | added | a9437babcf28fd21e4950cfcb82659bb02de13824e47bd1807f5a8e8a980bf8d | assert|test_init|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.m... | null | null | null |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 59 | 4 | assert | test_pipe_lines_format_mocked | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | format_ | added | 7e0afbd993a093deff0a6fea79ecffdd8c711b991073ff19e9e50bb2621e1403 | assert|test_pipe_lines_format_mocked|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source... | null | null | null |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 165 | 4 | assert | test_from_file | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | filename | added | b6d4821beacff4dc23a1c24e1d5c4b3bf9cf58fcab4f7b16df4b287be735b2b8 | assert|test_from_file|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pyt... | null | null | null |
xflr6/graphviz | train | 223 | cfa39098a230d9f4fab8681a763e9e3af3e5cee2 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 176 | 4 | assert | test_source_iter | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | list(source) * 2 | added | 5d6b78ba5951f26623d511282526d3cf66178c279ab1f65cc51cadacb9c6ae9e | assert|test_source_iter|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @p... | null | null | null |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 32 | 4 | assert | test_str | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | dot.source | modified | 7ddb947b77e4374350403175f7660d627c8c766f896d69789610748bebf800f8 | assert|test_str|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') return ... | dot.source | 29 | 4 |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 42 | 9 | pytest.raises | test_invalid_parameter_raises_valuerror | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | ValueError, match=match) | modified | c3bb9b05f67f8641ee78a914e05563854a5f2ee935b5ba06b143f8093a7833a7 | pytest.raises|test_invalid_parameter_raises_valuerror|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('... | ValueError, match=match) | 39 | 9 |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 55 | 4 | assert | test_repr_svg_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | mock_pipe.return_value | modified | 57553ec37935ab89d8ee42f76ecb9bea5238859e618a4afc8c49ba98e961b9e4 | assert|test_repr_svg_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | mock_pipe.return_value | 52 | 4 |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 243 | 4 | assert | test_subgraph_graph_none | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | expected | added | df5d682a4f6e9d2a089dd4ed95a18b7f1b7ab8a66e5d83314bc3840f7c271754 | assert|test_subgraph_graph_none|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1]... | null | null | null |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 247 | 9 | pytest.raises | test_subgraph_graph_notsole | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=r'sole') | added | 90fbafcd984bd87ed5c68cc8b8fefc7bc5436552e0890bd5590d3a58821a9a75 | pytest.raises|test_subgraph_graph_notsole|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name... | null | null | null |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 289 | 4 | assert | test_subgraph | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | '''graph { \t{ \t\tA \t\tB \t\tC \t\tA -- B [constraint=false] \t\tA -- C \t\tB -- C \t} \t{ \t\tD \t\tE \t\tF \t\tD -- E [constraint=false] \t\tD -- F \t\tE -- F \t} \tedge [style=dashed] \tA -- D \tB -- E \tC -- F } ''' | added | dcb9400563af1eee70e80823fab5d46decced30500a8454d939e1f170e1c7333 | assert|test_subgraph|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}'... | null | null | null |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 118 | 4 | assert | test_view_mocked | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | mock_render.return_value | added | b1ee211a37467cc3fa6b39b9c3b9082270f45caccbc7037be7b6faddad518062 | assert|test_view_mocked|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @p... | null | null | null |
xflr6/graphviz | train | 224 | d5cd75fd064d274d6295f5d70e5876f3ab509da2 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 160 | 4 | assert | test_from_file | import locale
import re
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURC... | formatter | added | 88b2bd9395cfcef5307528e56a30a6755d6d7ac01fe70462c851042e58acd787 | assert|test_from_file|import locale import re import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pyt... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 76 | 8 | assert | test_pipe_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | mock_pipe_lines.return_value.decode.return_value | added | 7b2e4af1c246789f70f2ee39144f6d2f0a9726413ffbbabe6d4fd0735f61e2cb | assert|test_pipe_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 86 | 4 | assert | test_repr_svg_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | mock_pipe.return_value | added | 869e90a96c7490e7861caa48d2793cc8b55d00ac1376d1579e774f17cd5bfbda | assert|test_repr_svg_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 94 | 4 | assert | test_unflatten | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | isinstance(result, graphviz.Source) | added | b455b54e9000108e64be8fbddaf2b1e62d6df9fa243dd7d96b2e3cb97503b7db | assert|test_unflatten|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') r... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 98 | 8 | assert | test_unflatten | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | 'digraph { hello -> world; }' | added | a33a5ae47402c37df0e7292b20b0734f2e122ee6b2130e1f61efee986e4e2f26 | assert|test_unflatten|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') r... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 102 | 9 | pytest.raises | test_render_raises_before_save_mocked | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=f'unknown {first_arg}') | added | 76fdeb6749041d5be10f2ce4e157c7d88fdc315d466ae57b0f41bb3fa2af75df | pytest.raises|test_render_raises_before_save_mocked|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 167 | 9 | pytest.raises | test_attr_invalid_kw | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=r'attr') | added | 7d0be1387b60fedaa26a1b838d75d0854713ba391c68d260f776578ebc9254a4 | pytest.raises|test_attr_invalid_kw|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 223 | 9 | pytest.raises | test_subgraph_mixed | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=r'kind') | added | 65b1320f402b6bb6eed9d2c515082492fc8f104200d6c89647bf5d2721d6ac34 | pytest.raises|test_subgraph_mixed|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[... | null | null | null |
xflr6/graphviz | train | 225 | 67b7b8916db97858848231ac37ea9ca5a3f2407c | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 321 | 4 | assert | test_label_html | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | '''digraph structs { \tnode [shape=plaintext] \tstruct1 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD>left</TD> <TD PORT="f1">middle</TD> <TD PORT="f2">right</TD> </TR> </TABLE>>] \tstruct2 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD PORT="f0">one</TD> <TD>two</TD> </TR> </... | added | 829ddbf3da2ad59f67867480292bc58e75de33f8b1719b10c9e36bce512c6fce | assert|test_label_html|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 109 | 4 | assert | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | None | added | 0c0c0ea22eea1d2affe3e5448636e5c837b873ffa7c0e611b61346608210925c | assert|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world ... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 110 | 4 | assert | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | isinstance(result, graphviz.Source) | added | 9ec0673c075e2cba93ccbdd6c598350cfe055a61cca444be3b71053a428dca26 | assert|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world ... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 118 | 4 | assert | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | dot.renderer | added | 1741380a78b7f025f667c9100db237bbc47534061b69d622b6701a6f4998bc06 | assert|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world ... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 119 | 4 | assert | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | dot.formatter | added | 2318c859783768105f1d3b593482e134cb31cb431730d79226f3c9ec27fb9d2b | assert|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world ... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 119 | 4 | assert | test_clear | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | body | added | 0b1e4cdfbbb55422beadc3804636e1d9ad9eef095f842c5af24020c04e13f609 | assert|test_clear|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}') d... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 167 | 4 | assert | test_escaped_quotes_and_escapes | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | expected | added | fd492fbc371e82fe54bb9deb69f44373d255ad39807a7d1e6253905fb3b39b27 | assert|test_escaped_quotes_and_escapes|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 187 | 4 | assert | test_subgraph_graph_none | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | expected | added | d99c69d540dbd3e8d57614ac0f50083ba6b28082bc698e95a1ad198e1c88236e | assert|test_subgraph_graph_none|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1]... | null | null | null |
xflr6/graphviz | train | 226 | 920336bac3d8ccb6bc7866a7db9db45c22b46fef | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 191 | 9 | pytest.raises | test_subgraph_graph_notsole | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=r'sole') | added | 3b7c8a7e3d5045cec1fdcbf42d03f6e49e604cff09749e6f83143a4fd90ee0db | pytest.raises|test_subgraph_graph_notsole|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 62 | 4 | assert | test_format_renderer_formatter_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | formatter | added | 612bba8655c75ab4b799434ad0e6db7ad53ae159d369b2960f9f0fa03f382880 | assert|test_format_renderer_formatter_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph {... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 98 | 8 | assert | test_pipe_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | mock_pipe_lines.return_value.decode.return_value | added | 05d021820030ff60d92d892ecee6d1884a50f8968a5e24d136d6957c23b5369e | assert|test_pipe_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 108 | 4 | assert | test_repr_svg_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | mock_pipe.return_value | added | 4e4dd76c8cff03232a298cf5ae0119c3b6776e72266264a477a31973f6205c54 | assert|test_repr_svg_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 138 | 4 | assert | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')
... | dot.engine | added | bf1327854329886d0ae6d65a5cba7c0e4f3856911ff4942c695a58147570a98f | assert|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world ... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 115 | 4 | assert | test_iter_strict | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | expected | added | 3009b2f48f38f6b19555427a12d92a0b30546a942d2f73094a753c1feedfa7fc | assert|test_iter_strict|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name_... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 145 | 4 | assert | test_escaped_quotes_and_escapes | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | expected | added | a8a80a9beec559bb92cef002df9de1b35a5af8141840e5981967e116598c1417 | assert|test_escaped_quotes_and_escapes|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 169 | 9 | pytest.raises | test_subgraph_graph_notsole | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | ValueError, match=r'sole') | added | d1e6ffe150b5faf6f6416b44ba36a8d346d7b6ae9ab11bfa2bed19175243abc2 | pytest.raises|test_subgraph_graph_notsole|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name... | null | null | null |
xflr6/graphviz | train | 227 | ffe3243d2e58d21800b5890afb7d76399c81d73d | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 273 | 4 | assert | test_label_html | import itertools
import re
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__na... | '''digraph structs { \tnode [shape=plaintext] \tstruct1 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD>left</TD> <TD PORT="f1">middle</TD> <TD PORT="f2">right</TD> </TR> </TABLE>>] \tstruct2 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD PORT="f0">one</TD> <TD>two</TD> </TR> </... | added | 03823dba9aead3760e208edaa32cb794b3db331b3ed5da0212053cc2a26c795b | assert|test_label_html|import itertools import re import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__... | null | null | null |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 32 | 4 | assert | test_render_raises_before_save | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | not expected_source.exists() | modified | 715000060a5e7f409b31929ce7bd30652eac3a49782300cc75e401451e6c8262 | assert|test_render_raises_before_save|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__n... | not expected_source.exists() | 33 | 4 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 96 | 4 | assert | test_clear | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | body | modified | 912ebb4e12bc10917d2864ad4c93dd3103aef3070f3467740a85cc80a086ead2 | assert|test_clear|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}') def classes... | body | 97 | 4 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 174 | 9 | pytest.raises | test_subgraph_mixed | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | ValueError, match=r'kind') | modified | da1ea777d39eaad5baa1fe992401100f2e365454c3d7b32b77b646702773e9fa | pytest.raises|test_subgraph_mixed|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name_... | ValueError, match=r'kind') | 175 | 9 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 186 | 4 | assert | test_subgraph_reflexive | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | expected | modified | fb6b60bdcf33192b1a8e2891edeec08caa5d0151997d8135d16846eabb23ba7e | assert|test_subgraph_reflexive|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}'... | expected | 187 | 4 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 42 | 4 | assert | test_init_filename | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | 'Source.gv' | modified | e02f2f23de7653eeee988eaf76f8baf45e2648dca03da13cb91876e7831e45fc | assert|test_init_filename|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.ma... | 'Source.gv' | 43 | 4 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 63 | 4 | assert | test_pipe_lines_mocked | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | mock_pipe_lines.return_value | modified | 9b6d7bdcbec77bdaa0211dc33cf9d595645203fc440031fc6d0ddd553d47c40d | assert|test_pipe_lines_mocked|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytes... | mock_pipe_lines.return_value | 64 | 4 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 93 | 4 | assert | test_save_mocked | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | [mocker.call(source.source)] | modified | 64c4f9bc450f68b40c7d7b9ca31fe789319cfd6061811d39bb3870e3342f3cf6 | assert|test_save_mocked|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark... | [mocker.call(source.source)] | 94 | 4 |
xflr6/graphviz | train | 228 | e4b3996e8af8748178b7a5531a09f04541c0685f | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 166 | 4 | assert | test_source_iter | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | list(source) * 2 | modified | 9ffd990b12963446a4022afb50e86410d6e6d0183c94006819f00bbfd8733004 | assert|test_source_iter|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark... | list(source) * 2 | 167 | 4 |
xflr6/graphviz | train | 229 | 113502d09568a28b815af611e5b10ae4034c2465 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 61 | 4 | assert | test_format_renderer_formatter_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | format | modified | 42fd448cd60802d2ce1c2c01d54f59fa41f6ecf46648ecdafaea7c19fc90553e | assert|test_format_renderer_formatter_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph {... | format | 61 | 4 |
xflr6/graphviz | train | 229 | 113502d09568a28b815af611e5b10ae4034c2465 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 97 | 8 | assert | test_pipe_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_pipe_lines.return_value | modified | dca4e90b71b8a97ff3498c57fd85eb9887f3faaae92416557581ed2aede49d91 | assert|test_pipe_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | mock_pipe_lines.return_value | 97 | 8 |
xflr6/graphviz | train | 229 | 113502d09568a28b815af611e5b10ae4034c2465 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 109 | 4 | assert | test_repr_svg_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_pipe.return_value | modified | 32ea578fb74391e54d0c316d44a81136ca0363763e61d0e30f752ee26f238b21 | assert|test_repr_svg_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | mock_pipe.return_value | 109 | 4 |
xflr6/graphviz | train | 229 | 113502d09568a28b815af611e5b10ae4034c2465 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 123 | 8 | assert | test_unflatten | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | normalized.startswith('digraph {' if dot.directed else 'graph {') | modified | 75b6554f8ded382edaae3c93d296d45a2bf21b43955a6312f22de1556a1cc0e0 | assert|test_unflatten|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n') r... | normalized.startswith('digraph {' if dot.directed else 'graph {') | 123 | 8 |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 70 | 4 | assert | test_render_raises_before_save | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | expected_source.exists() | added | d0f66e203d234d49c80175294d4d8e27aa2fb81dbd0082566b177401feb96960 | assert|test_render_raises_before_save|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello ... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 90 | 4 | assert | test_render_raises_before_save_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | not expected_source.exists() | added | 33bf35cfb0980d949f3573616632a918ea51278909f9a6b92c5e0ad44ee2e251 | assert|test_render_raises_before_save_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph {... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 130 | 8 | assert | test_pipe_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_pipe_lines_string.return_value | added | 96a1dc6c2aaa9f72ee3c468896f81487cf322efc77b31841b6318de5fcd21fe1 | assert|test_pipe_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 179 | 4 | assert | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | dot.engine | added | 5a5c4c73ebd4a9207e381370797642f52d6a5d4ed1158677f36f8737a0170ee2 | assert|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world ... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 80 | 9 | pytest.raises | test_attr_invalid_kw | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | ValueError, match=r'attr') | added | 45d9528d45431708fb6ba5e18e1b918404d827652400e3b17a9fcf7cd0b802f7 | pytest.raises|test_attr_invalid_kw|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 148 | 4 | assert | test_subgraph_reflexive | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | expected | added | 86a35b090816ba29e7da15df20ec0919bfc06a0559f464eee2489961fb8c5805 | assert|test_subgraph_reflexive|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}'... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 172 | 4 | assert | test_subgraph | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | '''graph { \t{ \t\tA \t\tB \t\tC \t\tA -- B [constraint=false] \t\tA -- C \t\tB -- C \t} \t{ \t\tD \t\tE \t\tF \t\tD -- E [constraint=false] \t\tD -- F \t\tE -- F \t} \tedge [style=dashed] \tA -- D \tB -- E \tC -- F } ''' | added | 52f4e4165edddf87b95517824be881793bed437f5d1baa72eb69485a56755b41 | assert|test_subgraph|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}') def clas... | null | null | null |
xflr6/graphviz | train | 230 | 82b9a9b32d76c79438ef009cb4bf06ad809afbf5 | train | tests/test_graphs.py | train | xflr6/graphviz:tests/test_graphs.py | 234 | 4 | assert | test_label_html | import itertools
import pytest
import graphviz
BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph]
@pytest.fixture(params=BASE_GRAPHS)
def cls(request):
return request.param
@pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)),
ids=lambda c: f'{c[0].__name__}, {c[1].__name__}')
de... | '''digraph structs { \tnode [shape=plaintext] \tstruct1 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD>left</TD> <TD PORT="f1">middle</TD> <TD PORT="f2">right</TD> </TR> </TABLE>>] \tstruct2 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD PORT="f0">one</TD> <TD>two</TD> </TR> </... | added | 14f89e43858bb9d610a054bd188ed34dd4d4b7843f1db4e28c31352ee583321a | assert|test_label_html|import itertools import pytest import graphviz BASE_GRAPHS = [graphviz.Graph, graphviz.Digraph] @pytest.fixture(params=BASE_GRAPHS) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations(BASE_GRAPHS, 2)), ids=lambda c: f'{c[0].__name__}, {c[1].__name__}') def cl... | null | null | null |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 52 | 4 | assert | test_encoding_none | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | locale.getpreferredencoding() | modified | ec1982b6351dcf0ac78a8a025656f57ea4f5b68545c10517f46111086ebf81cf | assert|test_encoding_none|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n... | locale.getpreferredencoding() | 50 | 4 |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 67 | 4 | assert | test_render_raises_before_save | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | not expected_source.exists() | modified | 87db533dd7860a06598bb6946e415c1bb7b856670ce6b8c6925682ce2c648cad | assert|test_render_raises_before_save|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello ... | not expected_source.exists() | 65 | 4 |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 139 | 8 | assert | test_pipe_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_pipe_lines.return_value | modified | c30015fe8c2b00022d6a8a36d0e6f521df5f746839700a20d32560c713ccdbac | assert|test_pipe_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | mock_pipe_lines.return_value | 137 | 8 |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 188 | 4 | assert_* | test_unflatten_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | dot.source) | modified | 6320c01aad727f8df5378c61d5accd779123f906c6fdaa3851da4f04712cad45 | assert_*|test_unflatten_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> worl... | dot.source) | 186 | 4 |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 33 | 4 | assert | test_init_filename | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | 'name.gv' | added | 36bf484f8a8a5b644c7d79b46140083fe928588734f4a6d3aad6a723824fd9f8 | assert|test_init_filename|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.ma... | null | null | null |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 67 | 8 | assert | test_filepath | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | 'test-output\\hello.gv' | added | 17f97b0562aa850649548929ffff510dfccd6fcaa0019eaf7f54c728be157405 | assert|test_filepath|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.pa... | null | null | null |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 107 | 4 | assert | test_view_mocked | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | mock_render.return_value | added | db097bc60494a6d11f433b99edcea930cb9ec221852a4ab1be32e1879a2679ff | assert|test_view_mocked|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark... | null | null | null |
xflr6/graphviz | train | 231 | e3021790d9dae86cda0a5d04f4b842ace47b6266 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 148 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | renderer | added | 183028b09448eb12fa3731d758d5c6e2afd39d14e7ddeaea1269b7abb116dd3f | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 198 | 4 | assert | test_view_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_render.return_value | added | b5eab5c8ae792a23a157c39847a957e2958c37913f6fb44bf69a158e794f7d3f | assert|test_view_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 204 | 9 | pytest.raises | test__view_unknown_platform | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | RuntimeError, match=r'support') | added | dd72f07f9617ae0fa7f88386aa0943a3121c07150392546e1463a328ee43976b | pytest.raises|test__view_unknown_platform|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { he... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 214 | 4 | assert | test__view_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | None | added | 45322946f0d65aa4b26dbaeab4d6be7f91db2b95c7b7babf1d4dc132633f183c | assert|test__view_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n'... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 216 | 4 | assert_* | test__view_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | sentinel.name) | added | 0c63969f88a4bcb4992ffbdb5fd15fabfad0226a193132f5ff9f6774a803595b | assert_*|test__view_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 119 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | filename | added | 02ebd3b36804b3821f10230289560d5e06942a0f0b09291bd41e3a4474c762ab | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 120 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | str(lpath) | added | f67d16414b9808949924905a63b0590ddce2326632baa3230fe7a7d2a3da5971 | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 123 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | formatter | added | 7bb717e525094460ddff5554d192e5a640ec5000c684acff10a5a473d0e153ba | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 232 | d11d489e4e5b6c322d79312b6b0a77239f7e3515 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 130 | 4 | assert | test_source_iter | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | list(source) * 2 | added | 00dcc2695fe217fc0632532adb5a055c867dbb52f287149c625fdca9472cdb3a | assert|test_source_iter|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 107 | 4 | assert_* | test_render_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_save.return_value) | added | a043fa4ae2327231bbde29b796b463e6f0712b64ef0a64cab2f69971a034503a | assert_*|test_render_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 167 | 4 | assert | test_repr_svg_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_pipe.return_value | added | 82499ab950b14fe8d5d7da4ba1e27ee3b5e5b304ca4f031abd86e972fd56cc16 | assert|test_repr_svg_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 214 | 4 | assert | test_view_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_render.return_value | added | 3e70e306143279f94f8a88a29b3e395b3d19bf339ca3303c2df9e0c7116dbd9f | assert|test_view_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }\n')... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 220 | 9 | pytest.raises | test__view_unknown_platform | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | RuntimeError, match=r'support') | added | 5347ed4b5f009e75964265a3eae6ed85abacc4abc076191c401d23f9e0531ef6 | pytest.raises|test__view_unknown_platform|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { he... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 96 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | locale.getpreferredencoding() | added | 5f15d4fccf376f6883fadbbf9470a5a75f0d03f2380dc1e0f7e32997667d3712 | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 104 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | str(lpath) | added | f3c1cfa2bb43e814edb9850e87cef73a5cf86038556b612f5249fc6f75a24445 | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 107 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | formatter | added | b778e839e3fc0eb09f96d2d946449269bb480c28e5db218f1ce97dce9660ca7e | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
xflr6/graphviz | train | 233 | 03c74b27289f8049caf106e11fccf987561a8395 | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 114 | 4 | assert | test_source_iter | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | list(source) * 2 | added | 0840c0f738debb704751e099953c6de5a715c1f8c003f670a7aef126f4038bc9 | assert|test_source_iter|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 174 | 4 | assert | test_pipe_lines_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | expected_lines | added | 4bfde0ca3e7a6552e7063d5610f58fac842ba65fb2ab8438631dc8e8200e5e8a | assert|test_pipe_lines_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 179 | 4 | assert | test_pipe_lines_format_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | format_ | added | 7d5261a7ee7b1406914c605fd39dce31f14cf1e117653f64605a38aadc4c1d09 | assert|test_pipe_lines_format_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 195 | 4 | assert | test_repr_svg_mocked | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | mock_pipe.return_value | added | 0f1ddfb772e0f087bf58314fb647256d7153aa556a48174edf253b7ba0aa4619 | assert|test_repr_svg_mocked|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { hello -> world }... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_all_classes.py | train | xflr6/graphviz:tests/test_all_classes.py | 248 | 9 | pytest.raises | test__view_unknown_platform | import locale
import re
import pytest
import graphviz
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
return cls('digraph { hello -> world }\n')... | RuntimeError, match=r'support') | added | e09396b5dfc8c8177cac10a5bae50d46f64d6cb3dea7c4fc00c9735d046adaa7 | pytest.raises|test__view_unknown_platform|import locale import re import pytest import graphviz ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source] @pytest.fixture(params=ALL_CLASSES) def cls(request): return request.param @pytest.fixture def dot(cls): if cls.__name__ == 'Source': return cls('digraph { he... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 39 | 8 | assert | test_filepath | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | 'test-output\\hello.gv' | added | a371d47e94099a7a1e7aaf6923a30d335bddab4949eba82055c9bc70a7bdea92 | assert|test_filepath|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.pa... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 51 | 4 | assert | test_save_mocked | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | source.filename == filename and source.directory == directory | added | 236a2e2b4cac82b1c75d9460bd4d6d4055f1150de9b890b25db8fbd8f6ece9d2 | assert|test_save_mocked|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark... | null | null | null |
xflr6/graphviz | train | 234 | dd06dfeac957f227736a5fd1155c0e77b2e929fb | train | tests/test_sources.py | train | xflr6/graphviz:tests/test_sources.py | 77 | 4 | assert | test_from_file | import locale
import pytest
import graphviz
SOURCE = {'source': 'digraph { hello -> world }\n',
'filename': 'hello.gv', 'directory': 'test-output',
'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'}
@pytest.fixture(scope='module')
def source():
return graphviz.Source(**SOURCE)
@pyte... | encoding | added | 39c24a7ddf864db1626375c733ffdc8cb276d634bb8e5718737066f35bb4dd3b | assert|test_from_file|import locale import pytest import graphviz SOURCE = {'source': 'digraph { hello -> world }\n', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8'} @pytest.fixture(scope='module') def source(): return graphviz.Source(**SOURCE) @pytest.mark.p... | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.