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
23
191cc51739aa6834cbe069509bb3c6f28a04907c
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
86
4
assert
test_subgraph
# test_dot.py # flake8: noqa import re import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(pattern=r'(?s)^<\?xml .+</svg>\s*$'): assert re.match(pattern, Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph()....
'''graph { { A B C A -- B [constraint=false] A -- C B -- C } { D E F D -- E [constraint=false] D -- F E -- F } edge [style=dashed] A -- D B -- E C -- F }'''
added
8d7dc66ea9631dde6839f6a7a8ba7a408a6a76af1d4f7c73fa95875def4427dd
assert|test_subgraph|# test_dot.py # flake8: noqa import re import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(pattern=r'(?s)^<\?xml .+</svg>\s*$'): assert re.match(pattern, Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().su...
null
null
null
xflr6/graphviz
train
23
191cc51739aa6834cbe069509bb3c6f28a04907c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
14
4
assert
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): f = File('name', 'dir', 'PNG', 'NEATO', 'latin1') assert f.filename == 'name' assert f.format == 'png' assert f.engine ==
'neato'
added
10731b74277aae9decd1828514fb38fdbaa0a3cda962864e117d4f5b9e1f73da
assert||# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): f = File('name', 'dir', 'PNG', 'NEATO', 'latin1') assert f.filename == 'name' assert f.format == 'png' assert f.engine ==
null
null
null
xflr6/graphviz
train
23
191cc51739aa6834cbe069509bb3c6f28a04907c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
57
9
pytest.raises
test_pipe_noent
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): f = File('name', 'dir', 'PNG', 'NEATO', 'latin1') assert f.filename == 'name' assert f.format == 'png' assert f.engine == 'neato' assert f.encoding == 'latin1' return ...
RuntimeError)
added
cabc966fb9d94de21e1d48237bc59e35de9918c64f1719e8076c82a4871c5c6e
pytest.raises|test_pipe_noent|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): f = File('name', 'dir', 'PNG', 'NEATO', 'latin1') assert f.filename == 'name' assert f.format == 'png' assert f.engine == 'neato' assert f.encoding == 'latin1' retur...
null
null
null
xflr6/graphviz
train
23
191cc51739aa6834cbe069509bb3c6f28a04907c
train
tests/test_lang.py
train
xflr6/graphviz:tests/test_lang.py
17
4
assert
test_attr_list_pairs
# test_lang.py from graphviz.lang import quote, attr_list def test_quote_quotes(): assert quote('"spam"') == r'"\"spam\""' def test_quote_keyword(): assert quote('node') == '"node"' assert quote('EDGE') == '"EDGE"' assert quote('Graph') == '"Graph"' def test_attr_list_pairs(): assert attr_lis...
' [spam=eggs]'
added
edc753bca7e9f73b23a78bd5c9ef296b8e071aa1c0a733b840db5fcdbbc8e2ce
assert|test_attr_list_pairs|# test_lang.py from graphviz.lang import quote, attr_list def test_quote_quotes(): assert quote('"spam"') == r'"\"spam\""' def test_quote_keyword(): assert quote('node') == '"node"' assert quote('EDGE') == '"EDGE"' assert quote('Graph') == '"Graph"' def test_attr_list_pairs(): assert attr_li...
null
null
null
xflr6/graphviz
train
23
191cc51739aa6834cbe069509bb3c6f28a04907c
train
tests/test_lang.py
train
xflr6/graphviz:tests/test_lang.py
21
4
assert
test_attr_list_map
# test_lang.py from graphviz.lang import quote, attr_list def test_quote_quotes(): assert quote('"spam"') == r'"\"spam\""' def test_quote_keyword(): assert quote('node') == '"node"' assert quote('EDGE') == '"EDGE"' assert quote('Graph') == '"Graph"' def test_attr_list_pairs(): assert attr_lis...
' [spam=eggs]'
added
070e6f7a51ca31bc97d32597577b0d860da08d3f31fdf6431c8b820182edc526
assert|test_attr_list_map|# test_lang.py from graphviz.lang import quote, attr_list def test_quote_quotes(): assert quote('"spam"') == r'"\"spam\""' def test_quote_keyword(): assert quote('node') == '"node"' assert quote('EDGE') == '"EDGE"' assert quote('Graph') == '"Graph"' def test_attr_list_pairs(): assert attr_list...
null
null
null
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
11
9
pytest.raises
test_render_filepath_missing
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(
subprocess.CalledProcessError)
modified
cecbcea7d7070c4449ad8baffbcb0add49c5ae36398f4ebad6dbdad520de5f3e
pytest.raises|test_render_filepath_missing|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(
subprocess.CalledProcessError)
12
9
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
17
9
pytest.raises
test_render_engine_unknown
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(subprocess.CalledProcessError) as e: render('dot', 'pdf', 'doesnotexist') assert e.value.returncode == 2 def test_render_engine_unknown(): with py...
ValueError)
modified
a521ff66dc67ad2f818a9d05b3da47342728f36e0535529f80bc30791ac59acf
pytest.raises|test_render_engine_unknown|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(subprocess.CalledProcessError) as e: render('dot', 'pdf', 'doesnotexist') assert e.value.returncode == 2 def test_render_engine_unkn...
ValueError)
18
9
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
23
9
pytest.raises
test_render_format_unknown
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(subprocess.CalledProcessError) as e: render('dot', 'pdf', 'doesnotexist') assert e.value.returncode == 2 def test_render_engine_unknown(): with py...
ValueError)
modified
2d3c81f52535af1576801b3de722a04cabee391cb0eede26b7a777176f58d7af
pytest.raises|test_render_format_unknown|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(subprocess.CalledProcessError) as e: render('dot', 'pdf', 'doesnotexist') assert e.value.returncode == 2 def test_render_engine_unkn...
ValueError)
24
9
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
36
4
assert
test_pipe
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(subprocess.CalledProcessError) as e: render('dot', 'pdf', 'doesnotexist') assert e.value.returncode == 2 def test_render_engine_unknown(): with py...
svg_pattern.match(src)
modified
6a7d74a27b83bd865460786fef13b3a079076b05dc8fe321c4202b340ad97c07
assert|test_pipe|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe def test_render_filepath_missing(): with pytest.raises(subprocess.CalledProcessError) as e: render('dot', 'pdf', 'doesnotexist') assert e.value.returncode == 2 def test_render_engine_unknown(): with pytest.raise...
re.match(pattern, src)
37
4
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
22
4
assert
test_iter_strict
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e...
'strict graph {\n}'
added
2d3f2e8674f31b4299ca2343d2c4c2abfc2c7f3aa8147f1ffbac7e419d5a40ee
assert|test_iter_strict|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e.ma...
null
null
null
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
35
4
assert
test_attr_kw_none
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e...
'graph {\n\tspam=eggs\n}'
modified
77fa0841b71e8b9d533fbc2e0a2d5b64975538e6d4617df64b8b485c7d544a47
assert|test_attr_kw_none|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e.m...
'graph {\n\tspam=eggs\n}'
36
4
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
85
4
assert
test_subgraph
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e...
'''graph { { A B C A -- B [constraint=false] A -- C B -- C } { D E F D -- E [constraint=false] D -- F E -- F } edge [style=dashed] A -- D B -- E C -- F }'''
modified
7e568c36792cc5392defd1c10bdc2461aa429e200c9e689067c6a5f36ae5c860
assert|test_subgraph|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e.match...
'''graph { { A B C A -- B [constraint=false] A -- C B -- C } { D E F D -- E [constraint=false] D -- F E -- F } edge [style=dashed] A -- D B -- E C -- F }'''
86
4
xflr6/graphviz
train
24
6d40403fe492e2764be0952129b8df463977f2bc
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
146
4
assert
test_label_html
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e...
'''digraph structs { node [shape=plaintext] struct1 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD>left</TD> <TD PORT="f1">middle</TD> <TD PORT="f2">right</TD> </TR> </TABLE>>] struct2 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD PORT="f0">one</TD> <TD>two</TD> </TR> </TABLE>...
modified
83aede4df14bf25e68f91f2cbc2c35b44095001d4a0bbee9c5e2a6a88da61cb3
assert|test_label_html|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph def test_repr_svg(svg_pattern): assert svg_pattern.match(Graph('spam')._repr_svg_()) def test_iter_subgraph_strict(): with pytest.raises(ValueError) as e: Graph().subgraph(Graph(strict=True)) e.mat...
'''digraph structs { node [shape=plaintext] struct1 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD>left</TD> <TD PORT="f1">middle</TD> <TD PORT="f2">right</TD> </TR> </TABLE>>] struct2 [label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR> <TD PORT="f0">one</TD> <TD>two</TD> </TR> </TABLE>...
147
4
xflr6/graphviz
train
25
f3a6ce098556ede90b1d4c6d35400b2e52a2b614
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
12
9
pytest.raises
test_render_engine_unknown
# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(
ValueError)
added
7aa44ed750e1fb9ac8035fb4d3335c1e7dc0f04682715143585512fed83425e2
pytest.raises|test_render_engine_unknown|# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(
null
null
null
xflr6/graphviz
train
25
f3a6ce098556ede90b1d4c6d35400b2e52a2b614
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
18
9
pytest.raises
test_render_format_unknown
# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(
ValueError)
added
0afda8ce9fce59c4db05a317bd6f33cbf8193c163c93779f6e3ce046b8af5571
pytest.raises|test_render_format_unknown|# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(
null
null
null
xflr6/graphviz
train
25
f3a6ce098556ede90b1d4c6d35400b2e52a2b614
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
24
9
pytest.raises
test_render_missingfile
# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as ...
subprocess.CalledProcessError)
added
e09a3f1225684dedaa8b9129eab222311450bcaa453fb23490074ac0bf7a0dd2
pytest.raises|test_render_missingfile|# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(Valu...
null
null
null
xflr6/graphviz
train
25
f3a6ce098556ede90b1d4c6d35400b2e52a2b614
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
42
9
pytest.raises
test_view_unsupported
# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as ...
RuntimeError)
added
4ef7771c8efd769a27f413dda71115c023b2616373752f2bdc618ef89f703eff
pytest.raises|test_view_unsupported|# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueE...
null
null
null
xflr6/graphviz
train
26
be24e7bbb506d3c6c80e2edddb5346eb9c1fad5e
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
65
4
assert_*
test_view_windows
# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as ...
'spam')
modified
9bb7edd597ad3633e2315e56c6af63fd5c5a9e6679bb7e960d267854df248965
assert_*|test_view_windows|# test_backend.py import subprocess import mock import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as ...
'spam')
65
4
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
11
9
pytest.raises
test_render_engine_unknown
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(
ValueError)
modified
7369fae69f3fa4ed1f1800e7bc583b086a835d36140a4a911dd13e2f18d53da4
pytest.raises|test_render_engine_unknown|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(
ValueError)
12
9
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
29
9
pytest.raises
test_pipe_invalid_data
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
subprocess.CalledProcessError)
modified
db59f0c37506fa2bfa7385f960b94573451aa3b843b21a4f7e8980aa5449054a
pytest.raises|test_pipe_invalid_data|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e:...
subprocess.CalledProcessError)
30
9
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
40
9
pytest.raises
test_view_unknown
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
RuntimeError)
added
1e2f195ba1d7978adc2c8101f9d50903577a93128f38d0276376f54b4dcc1e65
pytest.raises|test_view_unknown|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: pipe...
null
null
null
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
52
4
assert_*
test_view_unixoid
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
['xdg-open', 'spam'])
added
0d5a4f3283b0306a28e66cce2c16bcce84fdb79003e38c6302dbe1fb5b564e67
assert_*|test_view_unixoid|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: pipe('dot...
null
null
null
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
35
9
pytest.raises
test_engine
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
ValueError)
added
37caf9729f19367b21b97cef0da16e64d70cb6a48858e9068d2aba6ed077a32f
pytest.raises|test_engine|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 't...
null
null
null
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
67
9
pytest.raises
test_view_unknown
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
RuntimeError)
added
7a2f0aa5cb5ec07475fe264c466788537c72a54f7f9d2b25a4820a74e99ba5cf
pytest.raises|test_view_unknown|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.g...
null
null
null
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
74
4
assert_*
test_view_darwin
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
['open', 'name'])
added
9e1359cc8b8b2501ec1a26e8bde91e3681d4b7496cea24186af8a3c9c3884590
assert_*|test_view_darwin|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 't...
null
null
null
xflr6/graphviz
train
27
f8513d6c4c776c7fc56f0c0e43901622cf6fba9c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
84
4
assert_*
test_view_windows
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
'name')
added
2fe4bae6e9a191edd50586eb354047ed601160ffdc9a292cf6e985f201310490
assert_*|test_view_windows|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', '...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
41
13
pytest.raises
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
RuntimeError)
added
97cdd257c9db82053c3de25030d7b5c5acc8733f5aa7c261e01dffa015bdaba9
pytest.raises|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: pipe('dot', ...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
47
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
['open', 'spam'])
added
ac65c49b283f6fe9094f71295dcd96eba62d09a02957539c67ad1b5cd2fa6d28
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: pipe('dot', 'spam...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
49
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
['xdg-open', 'spam'])
added
926158fa87e1fe0c55da3654aef57c211cd2043dba1a332d8cfd949a6bed5f96
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: pipe('dot', 'spam...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
51
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: p...
'spam')
added
fe899a6ad0a9920b5e11391416c073a207a01344515c704cc4527cd3d8f26883
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view def test_render_engine_unknown(): with pytest.raises(ValueError) as e: pipe('spam', 'pdf', b'') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: pipe('dot', 'spam...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
68
13
pytest.raises
test_view_unknown
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
RuntimeError)
modified
9cd54bdb9bc9fb7003080043f317ee5de8a05af635773305f1e829323b8ad31b
pytest.raises|test_view_unknown|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.g...
RuntimeError)
67
9
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
74
12
assert_*
test_view_unknown
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
['open', 'name'])
added
05f22826c937dfcfc98b9c1d1f8539b2d100247ba45e6b3f3bb6a90c123fb0d8
assert_*|test_view_unknown|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', '...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
78
12
assert_*
test_view_unknown
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
'name')
added
7ea4e224f59552767b90eb81bf4d87ba4c133341c0206d71b8dc0f1c21f56a60
assert_*|test_view_unknown|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', '...
null
null
null
xflr6/graphviz
train
28
4030a5a42ecc846c1f34732c7060a70b84b0f209
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
86
4
assert
test_source
# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test...
source
added
e552cacdc0b9cd073ea57f29572e723489f3d2daf55cba80ec2d0f912df852bd
assert|test_source|# test_files.py import os import pytest from graphviz.files import File, Source @pytest.fixture(scope='session') def file(): return File('name', 'dir', 'PNG', 'NEATO', 'latin1') @pytest.fixture def file_noent(): oldpath = os.environ.get('PATH') os.environ['PATH'] = '' file = File('spam.gv', 'test-out...
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
11
9
pytest.raises
test_render_engine_unknown
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(
ValueError)
modified
6a6a1cb2787c28d38867b416a8c976f70889fa74ba33cc0f22381aee93587733
pytest.raises|test_render_engine_unknown|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(
ValueError)
11
9
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
29
9
pytest.raises
test_render_missingfile
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e:...
subprocess.CalledProcessError)
added
b314e6bed1b3a8bbf6c84777213cea6a6ef7b8df60138e54fa09f7b199ab14fc
pytest.raises|test_render_missingfile|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueE...
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
35
4
assert
test_render_mock
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e:...
'.pdf'
added
f2bcef9f27f863127525075ce3ffd7ad86c4e0931ddb02c6e9b4f9796f1bbe42
assert|test_render_mock|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: re...
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
69
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e:...
['open', 'spam'])
added
0f8a2573f01ba73fffc8da809628dafd9fe85090d6ec01a1ad84ce3c3dd4057e
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueError) as e: render(...
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
15
9
pytest.raises
test_format
# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(
ValueError)
added
cb13d01b040437e658caccfd8c0045dde1a884287efaacc7b064ccb0c88d2af0
pytest.raises|test_format|# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
21
9
pytest.raises
test_engine
# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(ValueError)...
ValueError)
added
3f80e940fc03699ea3359d00165df02c13727046e057cf77ffca2acf510496ca
pytest.raises|test_engine|# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(ValueError) as e:...
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
42
4
assert
test_init_filename
# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(ValueError)...
'Source.gv'
added
f52db092a9e0bc1f9c43f11846c8a04ae18eeeb2365865083f6734cd92ca6195
assert|test_init_filename|# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(ValueError) as e:...
null
null
null
xflr6/graphviz
train
29
717a4a6fca6bb3d2ee5d8640eb3aa658b8e66e7c
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
65
12
assert_*
test__view
# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(ValueError)...
'name')
added
c9b41526e20cd06b8fede63a11d7cfa21c8eaf848a9fc4bb7d6f85ebbf6895b7
assert_*|test__view|# test_files.py import pytest from graphviz.files import File, Source @pytest.fixture(scope='module') def source(): return Source('graph { hello -> world }', 'hello.gv', 'test-output', format='PNG', engine='NEATO', encoding='utf-8') def test_format(source): with pytest.raises(ValueError) as e: sourc...
null
null
null
xflr6/graphviz
train
30
b1edc12cf528100facec68097445940da3e683be
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
24
9
pytest.raises
test_render_missingdot
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
ExecutableNotFound)
modified
42df79307dae0c92f80695e8606c99e4689861b00ffc33d27a6233c3eac7bffe
pytest.raises|test_render_missingdot|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with p...
RuntimeError)
23
9
xflr6/graphviz
train
30
b1edc12cf528100facec68097445940da3e683be
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
36
4
assert
test_render_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
'.pdf'
added
f17c52126e0349620790f2a17bd51f4de2a562f017377fa1473f1d8cfb8a58be
assert|test_render_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raise...
null
null
null
xflr6/graphviz
train
30
b1edc12cf528100facec68097445940da3e683be
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
63
4
assert
test_pipe
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
svg_pattern.match(src)
added
eb2c765fa157a652de7345a6e50ab7f7c97f0531a962a80e03cf05ce89fca8df
assert|test_pipe|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueEr...
null
null
null
xflr6/graphviz
train
30
b1edc12cf528100facec68097445940da3e683be
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
68
13
pytest.raises
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
RuntimeError)
added
8003e7f8ead93b9f59dd212d49908bdde838d13bb8c42cc28592db020fc5ea1d
pytest.raises|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(...
null
null
null
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
36
4
assert_*
test_render_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
['dot', '-Tpdf', '-O', ''])
modified
659e24cb9225d3f6a061d8c6c7c81d50c001d6963328e0c59fb9adb624eb71f8
assert_*|test_render_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
['dot', '-Tpdf', '-O', ''])
37
4
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
45
9
pytest.raises
test_pipe_missingdot
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
ExecutableNotFound)
modified
2d764a337f13ade0571e3c1b8c64aae567b928703d2037f631e1413ae20ce4b0
pytest.raises|test_pipe_missingdot|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pyt...
ExecutableNotFound)
46
9
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
51
9
pytest.raises
test_pipe_invalid_data
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
subprocess.CalledProcessError)
modified
82fe661f6122b42ca0a8bb090b6176a231b1c1539c3e6aff731b3282c9f3bbd7
pytest.raises|test_pipe_invalid_data|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with p...
subprocess.CalledProcessError)
52
9
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
77
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
'spam')
modified
4bb289c4ec606f6f5eb0cf27746dde4dd6688c1a22cb66cb87d79bcef54b61c4
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(Value...
'spam')
78
12
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
48
4
assert
test_init
# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return So...
SOURCE['source']
added
7afdc128f14e0365fa15cf56564b02f74c91a2775c0f19b8e073514a3c29f143
assert|test_init|# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(...
null
null
null
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
54
4
assert
test_init_filename
# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return So...
'Source.gv'
added
97141647987f3cec459cac6c7323c6de81c0d6e0f5f1b2cfbec30c31f3441e21
assert|test_init_filename|# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): retur...
null
null
null
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
75
4
assert
test_pipe_format
# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return So...
pipe.return_value
added
2461312db185be3de0d706666a6e027cc6db230af4755af028aa5078f56273cd
assert|test_pipe_format|# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return ...
null
null
null
xflr6/graphviz
train
31
650794fda61349bc287b9007bb1690074b4a6c8a
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
83
4
assert
test_pipe
# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return So...
pipe.return_value
added
c85a7bf6ee55bb2331829696384075774393b07aa3d3f8fdc53d0085909bd982
assert|test_pipe|# test_files.py import sys import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(...
null
null
null
xflr6/graphviz
train
32
d941fee166aa2f116be8953a435b0c8f605c3431
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
66
4
assert_*
test_pipe_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
b'nograph')
added
12b04d7c3d2fd5352623192b0f3faddf8c69b512f231b8492614c371334e5e76
assert_*|test_pipe_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raise...
null
null
null
xflr6/graphviz
train
32
d941fee166aa2f116be8953a435b0c8f605c3431
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
72
4
assert
test_pipe
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
svg_pattern.match(src)
added
92ee1194f26f22dbb71f819d3b4b8270ca68797e571ca7f00afaa5684ead46d1
assert|test_pipe|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(ValueEr...
null
null
null
xflr6/graphviz
train
32
d941fee166aa2f116be8953a435b0c8f605c3431
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
83
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
['open', 'spam'])
added
47f84c498359df41a46ec93703500cb7580bfe27d3e5c85f556f90126f8610e4
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(Value...
null
null
null
xflr6/graphviz
train
32
d941fee166aa2f116be8953a435b0c8f605c3431
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
85
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
['xdg-open', 'spam'])
added
86305d5f59857ea6a7bf394854bc7dc5b6cb9268ee99d4e8ae1d50e203b95cad
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(Value...
null
null
null
xflr6/graphviz
train
33
466778135f78c8f03a373ae580424b33e38d6e99
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
30
9
pytest.raises
test_render_missingfile
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
subprocess.CalledProcessError)
modified
fbdbb3328b726c2a64646ed5a4329adc764f6c1beb9c6e2b5e0a63fe8a38cc17
pytest.raises|test_render_missingfile|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with ...
subprocess.CalledProcessError)
29
9
xflr6/graphviz
train
33
466778135f78c8f03a373ae580424b33e38d6e99
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
37
4
assert_*
test_render_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
['dot', '-Tpdf', '-O', ''])
modified
b50fdfc8c507f8a313996d2da0b5a4c557f78b31eaf54e76bd6d0dafb043ed2a
assert_*|test_render_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
['dot', '-Tpdf', '-O', ''])
36
4
xflr6/graphviz
train
33
466778135f78c8f03a373ae580424b33e38d6e99
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
53
9
pytest.raises
test_pipe_invalid_data
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
subprocess.CalledProcessError)
modified
ae351f647ff6e08f85affb6dbae2b5ad73b17d6b9ea6ce066548cd5c9dec95f7
pytest.raises|test_pipe_invalid_data|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with p...
subprocess.CalledProcessError)
51
9
xflr6/graphviz
train
33
466778135f78c8f03a373ae580424b33e38d6e99
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
69
4
assert
test_pipe_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.rais...
outs
modified
8883552bf3a05581f8816cf6b099f79b1c4ab59130ed474222f362c9d9f2afc8
assert|test_pipe_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', '') e.match(r'engine') def test_render_format_unknown(): with pytest.raises(...
outs
67
4
xflr6/graphviz
train
34
ab40379fb518213d911d84a8d4cb14656c7e6118
train
tests/test_tools.py
train
xflr6/graphviz:tests/test_tools.py
23
13
pytest.raises
test_mkdirs_invalid
# test_tools.py import os import functools import pytest from graphviz.tools import mkdirs def itertree(root): for path, dirs, files in os.walk(root): base = os.path.relpath(path, root) rel_path = functools.partial(os.path.join, base if base != '.' else '') for is_file, names in [(False...
OSError)
added
2bfc0dd3f605c17432adf2c313bcaeddfe3e7920831cf4e1585fc3c62c28e221
pytest.raises|test_mkdirs_invalid|# test_tools.py import os import functools import pytest from graphviz.tools import mkdirs def itertree(root): for path, dirs, files in os.walk(root): base = os.path.relpath(path, root) rel_path = functools.partial(os.path.join, base if base != '.' else '') for is_file, names in [(Fals...
null
null
null
xflr6/graphviz
train
34
ab40379fb518213d911d84a8d4cb14656c7e6118
train
tests/test_tools.py
train
xflr6/graphviz:tests/test_tools.py
33
12
assert
test_mkdirs
# test_tools.py import os import functools import pytest from graphviz.tools import mkdirs def itertree(root): for path, dirs, files in os.walk(root): base = os.path.relpath(path, root) rel_path = functools.partial(os.path.join, base if base != '.' else '') for is_file, names in [(False...
[(False, 'spam'), (False, 'spam/eggs')]
added
270a81fb6c557d539988351b1f1254e73daf2db6eb0ba4ac662b05c1bcec3927
assert|test_mkdirs|# test_tools.py import os import functools import pytest from graphviz.tools import mkdirs def itertree(root): for path, dirs, files in os.walk(root): base = os.path.relpath(path, root) rel_path = functools.partial(os.path.join, base if base != '.' else '') for is_file, names in [(False, dirs), (True...
null
null
null
xflr6/graphviz
train
35
c2632f2902e68a3332dffab17b109f8b0e93ea77
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
29
4
assert
test_engine
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
not SOURCE['engine'].islower()
modified
c30188c8c7ee99466caa9ede82d18a148f3aaf745c78cee0bcaee8d3cccdd1dc
assert|test_engine|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE)...
not SOURCE['engine'].islower()
31
4
xflr6/graphviz
train
35
c2632f2902e68a3332dffab17b109f8b0e93ea77
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
53
4
assert
test_init_filename
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
'name.gv'
modified
a8da9c284b944dd190eeb4103785189c64b4f076d6f7b2b120567a1cce236d26
assert|test_init_filename|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**...
'name.gv'
55
4
xflr6/graphviz
train
35
c2632f2902e68a3332dffab17b109f8b0e93ea77
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
62
4
assert_*
test__repr_svg_
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
source.encoding)
modified
aa1f12303bce5209b115c0c697b1855dfae04fa73966ae8c22a00efd0542c781
assert_*|test__repr_svg_|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**S...
source.encoding)
64
4
xflr6/graphviz
train
35
c2632f2902e68a3332dffab17b109f8b0e93ea77
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
140
8
assert_*
test__view
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
'name')
modified
8eb2a35659ee81fc4077ed9b7f167651c4decdd7adf313a336ee572c3d03dbbd
assert_*|test__view|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE...
'name')
142
8
xflr6/graphviz
train
36
ff38fa455c0fc788b1316339949e345c01a65212
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
23
9
pytest.raises
test_render_missingdot
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
ExecutableNotFound)
modified
a5a7742821f8a2277b50ff824beb92590bed6d65898a2fedede0706f119d3a31
pytest.raises|test_render_missingdot|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknow...
ExecutableNotFound)
23
9
xflr6/graphviz
train
36
ff38fa455c0fc788b1316339949e345c01a65212
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
71
9
pytest.raises
test_pipe_invalid_data
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
subprocess.CalledProcessError)
added
2887d13bd14fe568e7aae8e33383a65ad89b45c287fb6489453ddc28a38189ec
pytest.raises|test_pipe_invalid_data|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknow...
null
null
null
xflr6/graphviz
train
36
ff38fa455c0fc788b1316339949e345c01a65212
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
100
4
assert
test_pipe_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
outs
added
4eb2fe4c386caa46f88581e952e8dfe43edc383f8ae40cc91099b0d1d92a767d
assert|test_pipe_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pyt...
null
null
null
xflr6/graphviz
train
36
ff38fa455c0fc788b1316339949e345c01a65212
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
111
4
assert
test_pipe
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
svg_pattern.match(src)
added
09c457d59fd98b3fa44b5992fcb9e20e471b6d451df33f65c33f200b70c8c285
assert|test_pipe|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
null
null
null
xflr6/graphviz
train
37
222fdd7cb77b73b437d1435fbd84cc3d9abdc958
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
86
4
assert_*
test_pipe_mocked_fail
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
['dot', '-Tpng'])
modified
edc647f4c1102bd1053954d084c5ad093482e218d6342c3e27e3533995a15553
assert_*|test_pipe_mocked_fail|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): w...
['dot', '-Tpng'])
86
4
xflr6/graphviz
train
37
222fdd7cb77b73b437d1435fbd84cc3d9abdc958
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
102
4
assert_*
test_pipe_mocked
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
['dot', '-Tpng'])
modified
4689146e25e5662df992dcc1a11a546cde40d95ded4aab6ea78e5f1c0dd8a0de
assert_*|test_pipe_mocked|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with p...
['dot', '-Tpng'])
102
4
xflr6/graphviz
train
37
222fdd7cb77b73b437d1435fbd84cc3d9abdc958
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
111
4
assert
test_pipe
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
svg_pattern.match(src)
modified
f6fb3926a5b89141db6c98af44819eb489a5088c7fbef904e2c06845cb512838
assert|test_pipe|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pytest.rai...
svg_pattern.match(src)
111
4
xflr6/graphviz
train
37
222fdd7cb77b73b437d1435fbd84cc3d9abdc958
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
122
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
['open', 'nonfilepath'])
modified
8eaf100cfa5dcfac7530c16e53af101c8479e8f0b14e7f76289fc448146e1049
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pytest.r...
['open', 'nonfilepath'])
122
12
xflr6/graphviz
train
38
5155724de8785e2db73ace2cb790e17d12599bce
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
116
13
pytest.raises
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
RuntimeError)
modified
d280c1b5f5d5f23fb3f247a6f046d02dbce172e1230fea9efc941598c8a1c862
pytest.raises|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pyt...
RuntimeError)
116
13
xflr6/graphviz
train
38
5155724de8785e2db73ace2cb790e17d12599bce
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
122
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
['open', 'nonfilepath'])
modified
c55e7e7c460ebc8f3a0be374e520a8fd138f80cd042ef6f6ea7e2a012c993c3a
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pytest.r...
['open', 'nonfilepath'])
122
12
xflr6/graphviz
train
38
5155724de8785e2db73ace2cb790e17d12599bce
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
124
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
['xdg-open', 'nonfilepath'])
modified
eda28b9d5957ac67ce956816ffc560286c93e574ec94691b81d62731368ac54a
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pytest.r...
['xdg-open', 'nonfilepath'])
124
12
xflr6/graphviz
train
38
5155724de8785e2db73ace2cb790e17d12599bce
train
tests/test_backend.py
train
xflr6/graphviz:tests/test_backend.py
126
12
assert_*
test_view
# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with ...
'nonfilepath')
modified
729ef82f9f613898b787f1f381a29bc0da1dfc71da323d2b27eb822d38ef35e2
assert_*|test_view|# test_backend.py import subprocess import pytest from graphviz.backend import render, pipe, view, ExecutableNotFound, STARTUPINFO def test_render_engine_unknown(): with pytest.raises(ValueError) as e: render('', 'pdf', 'nonfilepath') e.match(r'engine') def test_render_format_unknown(): with pytest.r...
'nonfilepath')
126
12
xflr6/graphviz
train
38
5155724de8785e2db73ace2cb790e17d12599bce
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
132
13
pytest.raises
test__view
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
RuntimeError)
modified
c40c3dc7e46cc85cb3a0f1defa5c3cb96698e118e936dd4ffe42a192a3a1d9f2
pytest.raises|test__view|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**S...
RuntimeError)
132
13
xflr6/graphviz
train
38
5155724de8785e2db73ace2cb790e17d12599bce
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
140
8
assert_*
test__view
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
'name')
modified
619a4cef97603179f798d679835b9fb8e138691265543c1280c0edb1a3dd02b2
assert_*|test__view|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE...
'name')
140
8
xflr6/graphviz
train
39
cdd4dfb538b94616c0bb64af98f52933228160c7
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
115
4
assert_*
test_render
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
save.return_value)
modified
f8fa91e2cb9b5fa19682abb5b79402eccb484b0fc8f8af378fbf125301109a2f
assert_*|test_render|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
save())
115
4
xflr6/graphviz
train
39
cdd4dfb538b94616c0bb64af98f52933228160c7
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
116
4
assert_*
test_render
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
save.return_value)
modified
d3deee2f91a5e88f08a0da2047f0e02c43db052de910fff2134ebd17ecc4d374
assert_*|test_render|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
save.return_value)
116
4
xflr6/graphviz
train
39
cdd4dfb538b94616c0bb64af98f52933228160c7
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
132
13
pytest.raises
test__view
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
RuntimeError)
modified
77bc4e3a67a51a7da0fe41be11b98dca29f9563b820e4a2cd192a5662a503e65
pytest.raises|test__view|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**S...
RuntimeError)
132
13
xflr6/graphviz
train
39
cdd4dfb538b94616c0bb64af98f52933228160c7
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
140
8
assert_*
test__view
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
'name')
modified
6a93f16ec61d4569ad6a383875a5297ddf9a24c3c39302671a3ec69783178f84
assert_*|test__view|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE...
'name')
140
8
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
30
9
pytest.raises
test_iter_subgraph_strict
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c.copy()...
ValueError)
added
bc56df219687f75b6b59ac78877871b1a45e01bca710cf248a311aec53c11888
pytest.raises|test_iter_subgraph_strict|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is ...
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
36
4
assert
test_iter_strict
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c.copy()...
'strict graph {\n}'
added
ce76856a4044d8d782c860cfe2eae04c364305c2ef444d71900ad731eff0b5af
assert|test_iter_strict|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c.copy() ass...
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
67
13
pytest.raises
test_subgraph_mixed
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c.copy()...
ValueError)
added
6e7513b47322289c7c184ffa434be3b24ee39a6cf938d051969e80d9a9a13a15
pytest.raises|test_subgraph_mixed|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c....
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
75
4
assert
test_subgraph_reflexive
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c.copy()...
'graph {\n\t{\n\t}\n}'
added
ab7e2fc335991d5b40185fa36a5ddb8c1ac7f180a093d485839cdbaed167cbb2
assert|test_subgraph_reflexive|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param def test_copy(cls): c = cls() assert c.__class__ is cls assert c.copy() is not c assert c.copy() is not c.cop...
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
144
4
assert
test_copy
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
source
added
8316f5ef6da2d0bfe2438cd83e7e818cfcf403385f658b76478509ddc34d7b79
assert|test_copy|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE) d...
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
145
4
assert
test_copy
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
source.copy()
added
a9730fe75a6c5aef403c498cb6eaae2df7f1ca539717b3ea86497465501ec2ab
assert|test_copy|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE) d...
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
146
4
assert
test_copy
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
source.__class__
added
cd8fdfdd318030e7dedc032f6f54c7cc517f384f205aeb6c93e4a70451c1b437
assert|test_copy|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE) d...
null
null
null
xflr6/graphviz
train
40
95556e0b19fb2bccbbf71d74fa7c854b1b811189
train
tests/test_files.py
train
xflr6/graphviz:tests/test_files.py
147
4
assert
test_copy
# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURC...
source.__dict__
added
e6aa990d80021db073ebfb2c922772826fbd1adf0a3d95b84c035352e921648c
assert|test_copy|# test_files.py import pytest from graphviz.files import File, Source SOURCE = { 'source': 'digraph { hello -> world }', 'filename': 'hello.gv', 'directory': 'test-output', 'format': 'PNG', 'engine': 'NEATO', 'encoding': 'utf-8', } @pytest.fixture(scope='module') def source(): return Source(**SOURCE) d...
null
null
null
xflr6/graphviz
train
41
11e2d7da5c2a277b3745ca6b34c800b256f0d1ae
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
26
4
assert
test_copy
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def ...
c.__class__
added
84f94d9c8e9658b5e25ee3bdb319233d6b5c6f6c2e37c7449d90b1604e5aba36
assert|test_copy|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def te...
null
null
null
xflr6/graphviz
train
41
11e2d7da5c2a277b3745ca6b34c800b256f0d1ae
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
31
4
assert
test_repr_svg
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def ...
svg_pattern.match(Graph('spam')._repr_svg_())
added
e05d392d664bc310127488177dd50269c45cda2945ffa89e9b04afec0b496c7a
assert|test_repr_svg|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param de...
null
null
null
xflr6/graphviz
train
41
11e2d7da5c2a277b3745ca6b34c800b256f0d1ae
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
65
9
pytest.raises
test_subgraph_graph_notsole
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def ...
ValueError)
added
bda170c2bd41ef59de7fac33a8a27e02e8faf21b3bcb09dfabe1bbb87555d1b5
pytest.raises|test_subgraph_graph_notsole|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): re...
null
null
null
xflr6/graphviz
train
41
11e2d7da5c2a277b3745ca6b34c800b256f0d1ae
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
80
4
assert
test_subgraph_reflexive
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def ...
'graph {\n\t{\n\t}\n}'
added
dac7b6eda77d52a28188f152ec54d0143109212eabf32194806a5833f5f3262f
assert|test_subgraph_reflexive|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return reques...
null
null
null
xflr6/graphviz
train
42
7a82498092454f1c9a4cdb4a85f96fad5707827f
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
31
4
assert
test_repr_svg
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def ...
svg_pattern.match(cls('spam')._repr_svg_())
modified
18b82d53ec104e5edd4610ba85a1620a58118be20a4ca785a4926e5f31a17ccc
assert|test_repr_svg|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param de...
svg_pattern.match(Graph('spam')._repr_svg_())
31
4
xflr6/graphviz
train
42
7a82498092454f1c9a4cdb4a85f96fad5707827f
train
tests/test_dot.py
train
xflr6/graphviz:tests/test_dot.py
41
4
assert
test_iter_strict
# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param def ...
'strict graph {\n}'
added
29614b6289c7dc08956bd3ee6f56631a6db75f3f4af16c3bddf5772a5453d836
assert|test_iter_strict|# test_dot.py # flake8: noqa import itertools import pytest from graphviz.dot import Graph, Digraph @pytest.fixture(params=[Graph, Digraph]) def cls(request): return request.param @pytest.fixture(params=list(itertools.permutations([Graph, Digraph], 2))) def classes(request): return request.param...
null
null
null