Skip to content

Instantly share code, notes, and snippets.

@ykshatroff
Created January 18, 2020 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykshatroff/c6ce2b21324ae5e263c9bf13b41b88e3 to your computer and use it in GitHub Desktop.
Save ykshatroff/c6ce2b21324ae5e263c9bf13b41b88e3 to your computer and use it in GitHub Desktop.
from datetime import datetime
import pytest
from prog import read_from_file, read_line
def test_file_operations(file_data):
assert read_line(file_data) == (datetime(2020, 1, 18, 13, 49, 47), "text")
def test_read_from_file(existing_file):
buffer, parsed = read_from_file(existing_file)
assert parsed == []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment