Skip to content

Commit

Permalink
updated test_elide to new changes on gh.elide; fix failing tests due …
Browse files Browse the repository at this point in the history
…to changes on gh.get_temp_file
  • Loading branch information
LimaBD committed Apr 28, 2023
1 parent 9b5e51e commit 3026b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mezcla/tests/test_glue_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_elide(self):
"""Ensure elide works as expected"""
debug.trace(4, "test_elide()")
assert THE_MODULE.elide("=" * 80, max_len=8) == "========..."
assert THE_MODULE.elide(None, 10) is None
assert THE_MODULE.elide(None, 10) is ""

def test_elide_values(self):
"""Ensure elide_values works as expected"""
Expand Down Expand Up @@ -287,7 +287,7 @@ def test_copy_file(self):
"""Ensure copy_file works as expected"""
debug.trace(4, "test_copy_file()")
first_temp_file = gh.get_temp_file()
second_temp_file = gh.get_temp_file()
second_temp_file = f"{first_temp_file}_target_copy"
gh.write_file(first_temp_file, 'some random content')
THE_MODULE.copy_file(first_temp_file, second_temp_file)
assert gh.read_file(second_temp_file) == 'some random content\n'
Expand Down

0 comments on commit 3026b50

Please sign in to comment.