mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Run black over path tests
This commit is contained in:
@@ -27,12 +27,15 @@ class ListPathApp(App[None]):
|
|||||||
CSS_PATH = ["test.css", Path("/another/path.css")]
|
CSS_PATH = ["test.css", Path("/another/path.css")]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("app,expected_css_path_attribute", [
|
@pytest.mark.parametrize(
|
||||||
(RelativePathObjectApp(), [APP_DIR / "test.css"]),
|
"app,expected_css_path_attribute",
|
||||||
(RelativePathStrApp(), [APP_DIR / "test.css"]),
|
[
|
||||||
(AbsolutePathObjectApp(), [Path("/tmp/test.css")]),
|
(RelativePathObjectApp(), [APP_DIR / "test.css"]),
|
||||||
(AbsolutePathStrApp(), [Path("/tmp/test.css")]),
|
(RelativePathStrApp(), [APP_DIR / "test.css"]),
|
||||||
(ListPathApp(), [APP_DIR / "test.css", Path("/another/path.css")]),
|
(AbsolutePathObjectApp(), [Path("/tmp/test.css")]),
|
||||||
])
|
(AbsolutePathStrApp(), [Path("/tmp/test.css")]),
|
||||||
|
(ListPathApp(), [APP_DIR / "test.css", Path("/another/path.css")]),
|
||||||
|
],
|
||||||
|
)
|
||||||
def test_css_paths_of_various_types(app, expected_css_path_attribute):
|
def test_css_paths_of_various_types(app, expected_css_path_attribute):
|
||||||
assert app.css_path == [path.absolute() for path in expected_css_path_attribute]
|
assert app.css_path == [path.absolute() for path in expected_css_path_attribute]
|
||||||
|
|||||||
Reference in New Issue
Block a user