headless-safe filedialog tests with optional live dialog tests and ruff fixes
Tests / test_and_lint (push) Failing after 7s
Tests / test_and_lint (push) Failing after 7s
This commit is contained in:
+2
-1
@@ -1,4 +1,3 @@
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from utils.misc import read, readlines
|
||||
@@ -12,6 +11,7 @@ with a second line
|
||||
and a third line
|
||||
"""
|
||||
|
||||
|
||||
def test_readlines_str():
|
||||
result = readlines(TEST_FILE_PATH)
|
||||
assert result
|
||||
@@ -19,6 +19,7 @@ def test_readlines_str():
|
||||
assert all(isinstance(element, str) for element in result)
|
||||
assert result[1].strip() == "with a second line"
|
||||
|
||||
|
||||
def test_path_str():
|
||||
result = read(TEST_FILE_PATH)
|
||||
assert result
|
||||
|
||||
Reference in New Issue
Block a user