Created
January 18, 2020 12:24
-
-
Save ykshatroff/c6ce2b21324ae5e263c9bf13b41b88e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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