Skip to content

Instantly share code, notes, and snippets.

@tkutcher
Created February 19, 2022 18:01
Show Gist options
  • Save tkutcher/c4751f250139fe898f511d127f3765f7 to your computer and use it in GitHub Desktop.
Save tkutcher/c4751f250139fe898f511d127f3765f7 to your computer and use it in GitHub Desktop.
File IO Demo Test 3
def test_read_from_file_1():
c = read_from_file(pathlib.Path(__file__).parent / "res" / "example-config-001.json")
assert c.x == "3"
def test_read_from_file_2():
c = read_from_file(pathlib.Path(__file__).parent / "res" / "example-config-002.json")
assert c.x == "18"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment