Lines Matching refs:filename
25 def write_to(content, filename): argument
26 with open(filename, 'w') as f:
30 def read_from(filename): argument
31 with open(filename) as f:
91 def check_results_yaml_content(filename, expectations): argument
104 content = read_from(filename)
108 logger.error("Expectation not found in %s: %s", filename, e)
123 filename = "./tests/traces.yml"
124 content = read_from(filename)
127 write_to(content, filename)
138 filename = "./tests/traces.yml"
139 content = read_from(filename)
144 write_to(content, filename)
148 filename = "./traces-db/trace1/red.testtrace"
150 write_to(content, filename)
155 filename = "./tests/traces.yml"
161 write_to(content, filename)
165 filename = "./traces-db/trace1/red.testtrace"
167 write_to(content, filename)
172 filename = "./tests/traces.yml"
174 write_to(content, filename)
185 filename = "./traces-db/trace1/magenta.testtrace"
186 write_to("invalid\n", filename)
205 filename = "./tests/traces.yml"
206 content = read_from(filename)
209 write_to(content, filename)
238 filename = "./tests/traces.yml"
239 content = read_from(filename)
242 write_to(content, filename)