From 025ac6953d277cb8e4e05a7c1cf9afab5bdc4bde Mon Sep 17 00:00:00 2001 From: jrycw Date: Mon, 7 Oct 2024 14:45:36 +0800 Subject: [PATCH] Remove usage of the `os` module in tests for `GT.write_html()` --- tests/test_export.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_export.py b/tests/test_export.py index d8eb38499..3b536dea5 100644 --- a/tests/test_export.py +++ b/tests/test_export.py @@ -106,8 +106,6 @@ def test_write_html(gt_tbl): assert p_file.exists() # Pass the filename as a string - import os - s_file = str(Path(tmp_dir, "table2.html")) gt_tbl.write_html(s_file) - assert os.path.exists(s_file) + assert Path(s_file).exists()