Skip to content

Commit

Permalink
test_graph: add filename only to pdf list (#3972)
Browse files Browse the repository at this point in the history
The pdfs list should be constructed from filenames only without other path components, i.e. use last entry from split()
  • Loading branch information
drew-parsons authored Aug 5, 2024
1 parent 00a24e5 commit 4ffec03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/analysis/test_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def test_draw(self):
bc_square_sg_r.draw_graph_to_file(f"{self.tmp_path}/bc_square_r.pdf", algo="neato", image_labels=False)

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

0 comments on commit 4ffec03

Please sign in to comment.