Skip to content

Commit 4ffec03

Browse files
authored
test_graph: add filename only to pdf list (#3972)
The pdfs list should be constructed from filenames only without other path components, i.e. use last entry from split()
1 parent 00a24e5 commit 4ffec03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/analysis/test_graphs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_draw(self):
373373
bc_square_sg_r.draw_graph_to_file(f"{self.tmp_path}/bc_square_r.pdf", algo="neato", image_labels=False)
374374

375375
# ensure PDF files were created
376-
pdfs = {path.split("/") for path in glob(f"{self.tmp_path}/*.pdf")}
376+
pdfs = {path.split("/")[-1] for path in glob(f"{self.tmp_path}/*.pdf")}
377377
expected_pdfs = {
378378
"bc_square_r_single.pdf",
379379
"bc_square_r.pdf",

0 commit comments

Comments
 (0)