Remove the word can from these test names
- ID
1289213- date
2025-05-05 07:31:14+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
d991f3a- message
Remove the word `can` from these test names- changed files
1 file, 7 additions, 7 deletions
Changed files
tests/test_javascript_data_files.py (17712) → tests/test_javascript_data_files.py (17684)
diff --git a/tests/test_javascript_data_files.py b/tests/test_javascript_data_files.py
index 3446a02..fedae71 100644
--- a/tests/test_javascript_data_files.py
+++ b/tests/test_javascript_data_files.py
@@ -153,7 +153,7 @@ class TestWriteJs:
Tests for the ``write_js()`` function.
"""
- def test_can_write_file(self, js_path: pathlib.Path) -> None:
+ def test_write_file(self, js_path: pathlib.Path) -> None:
"""
Writing to a file stores the correct JavaScript string.
"""
@@ -166,7 +166,7 @@ class TestWriteJs:
== 'const redPentagon = {\n "sides": 5,\n "colour": "red"\n};\n'
)
- def test_can_write_to_str(self, tmp_path: pathlib.Path) -> None:
+ def test_write_to_str(self, tmp_path: pathlib.Path) -> None:
"""
It can write to a path passed as a ``str``.
"""
@@ -181,7 +181,7 @@ class TestWriteJs:
== 'const redPentagon = {\n "sides": 5,\n "colour": "red"\n};\n'
)
- def test_can_write_to_path(self, tmp_path: pathlib.Path) -> None:
+ def test_write_to_path(self, tmp_path: pathlib.Path) -> None:
"""
It can write to a path passed as a ``pathlib.Path``.
"""
@@ -196,7 +196,7 @@ class TestWriteJs:
== 'const redPentagon = {\n "sides": 5,\n "colour": "red"\n};\n'
)
- def test_can_write_to_file(self, tmp_path: pathlib.Path) -> None:
+ def test_write_to_file(self, tmp_path: pathlib.Path) -> None:
"""
It can write to a file.
"""
@@ -212,7 +212,7 @@ class TestWriteJs:
== 'const redPentagon = {\n "sides": 5,\n "colour": "red"\n};\n'
)
- def test_can_write_to_binary_file(self, tmp_path: pathlib.Path) -> None:
+ def test_write_to_binary_file(self, tmp_path: pathlib.Path) -> None:
"""
It can write to a file opened in binary mode.
"""
@@ -228,7 +228,7 @@ class TestWriteJs:
== 'const redPentagon = {\n "sides": 5,\n "colour": "red"\n};\n'
)
- def test_can_write_to_string_buffer(self) -> None:
+ def test_write_to_string_buffer(self) -> None:
"""
It can write to a string buffer.
"""
@@ -243,7 +243,7 @@ class TestWriteJs:
== 'const redPentagon = {\n "sides": 5,\n "colour": "red"\n};\n'
)
- def test_can_write_to_bytes_buffer(self) -> None:
+ def test_write_to_bytes_buffer(self) -> None:
"""
It can write to a binary buffer.
"""