Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Sheni committed Mar 21, 2022
1 parent b0b920a commit 5a511d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions minimum_dependency_generator/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@


def test_write_text_file():
data = 'scipy==0.8.0\npandas==1.2.0\n'
reqs = ['scipy==0.8.0', 'pandas==1.2.0']
reqs = '\n'.join(reqs) + '\n'
with NamedTemporaryFile() as temp:
write_file(data, temp.name)
write_file(reqs, temp.name)
with open(temp.name) as written:
min_reqs = written.readlines()
assert len(min_reqs) == 2
Expand Down

0 comments on commit 5a511d7

Please sign in to comment.