File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,12 @@ def _show_fixture_duplicates_main(config, session):
121
121
122
122
def pytest_runtest_setup (item ):
123
123
if item .config .option .fixture_graph and hasattr (item , "_fixtureinfo" ):
124
- curdir = py .path .local ()
125
124
# fixtures came from function parameters names
126
125
data = dict ()
127
126
data ['func_args' ] = item ._fixtureinfo .argnames , 'red'
128
127
for fixture_name , fixture_data in list (item ._fixtureinfo .name2fixturedefs .items ()):
129
128
130
- loc = getlocation (fixture_data [0 ].func , curdir )
131
- if 'pytest_vgw' in loc :
132
- color = 'yellow'
133
- else :
134
- color = 'green'
129
+ color = 'green'
135
130
data [fixture_name ] = fixture_data [0 ].argnames , color
136
131
137
132
graph = pydot .Dot (graph_type = 'digraph' )
@@ -155,7 +150,7 @@ def pytest_runtest_setup(item):
155
150
graph .write ("{}.{}" .format (filename , output_type ), format = output_type )
156
151
tw .line ("created {}.{}." .format (filename , output_type ))
157
152
except Exception :
158
- tw .line ("grpahvis wasn't found in PATH" )
153
+ tw .line ("graphvis wasn't found in PATH" )
159
154
graph .write (filename + ".dot" )
160
155
tw .line ("created {}.dot." .format (filename ))
161
156
tw .line ("You can convert it to a PNG using:\n \t 'dot -Tpng {0}.dot -o {0}.png'" .format (filename ))
You can’t perform that action at this time.
0 commit comments