Skip to content

Commit bc54bed

Browse files
committed
test: additional tests around issue #8 which confirm level of support currently
Signed-off-by: Paul Horton <[email protected]>
1 parent 0411826 commit bc54bed

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
certifi==2021.5.30 \
2+
--hash=sha256:2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee
3+
# via requests

tests/test_parser_requirements.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ def test_example_with_comments(self):
5050
r.close()
5151
self.assertTrue(5, parser.component_count())
5252

53+
def test_example_multiline_with_comments(self):
54+
with open(os.path.join(os.path.dirname(__file__), 'fixtures/requirements-multilines-with-comments.txt')) as r:
55+
parser = RequirementsParser(
56+
requirements_content=r.read()
57+
)
58+
r.close()
59+
self.assertTrue(5, parser.component_count())
60+
5361
@unittest.skip('Not yet supported')
5462
def test_example_with_hashes(self):
5563
with open(os.path.join(os.path.dirname(__file__), 'fixtures/requirements-with-hashes.txt')) as r:

0 commit comments

Comments
 (0)