Skip to content

Instantly share code, notes, and snippets.

import pytest
def read_file():
print("Running read_file")
with open("test.txt", "r") as test_file:
data = test_file.read()
print("DATA: {}".format(data if data else "[[[[EMPTY]]]]"))
return data
def write_file(data):