Skip to content

Commit

Permalink
modified test for write docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukman-Lateef committed Jan 17, 2025
1 parent 4af2e39 commit 28b02a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_write_docstring_to_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_print_only(valid_docstring, capsys):

def test_write_to_valid_file(valid_docstring):
"""Test writing the docstring to a valid file"""

with NamedTemporaryFile(suffix=".txt",delete=False) as temp_file:
file_path = temp_file.name

Expand Down Expand Up @@ -68,7 +67,7 @@ def test_invalid_directory(valid_docstring):
def test_non_writable_directory(valid_docstring):
"""Test writing to a file in a non-writable directory."""
with TemporaryDirectory() as temp_dir:
# Make the temp_dir directory non-writable
# Make the temp_dir directory non writable
os.chmod(temp_dir, 0o500)
file_path = os.path.join(temp_dir, "docstring_output.txt")
try:
Expand Down

0 comments on commit 28b02a5

Please sign in to comment.