Tests: Use pathlib read_text/write_text (test_output_folder.py)
@@ -33,11 +33,11 @@ def test_output_folder():
something = """Hi!
My name is Audrey Greenfeld.
It is 2014."""
- something2 = Path('output_folder/something.txt').open().read()
+ something2 = Path('output_folder/something.txt').read_text()
assert something == something2
in_folder = "The color is green and the letter is D."
- in_folder2 = Path('output_folder/folder/in_folder.txt').open().read()
+ in_folder2 = Path('output_folder/folder/in_folder.txt').read_text()
assert in_folder == in_folder2
assert os.path.isdir('output_folder/im_a.dir')
