Skip to content

Commit 96c79f6

Browse files
committed
Add test capturing expectation when requires.txt is empty. Ref #367.
1 parent 2ef0770 commit 96c79f6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ def test_requires_egg_info(self):
232232
assert len(deps) == 2
233233
assert any(dep == 'wheel >= 1.0; python_version >= "2.7"' for dep in deps)
234234

235+
def test_requires_egg_info_empty(self):
236+
fixtures.build_files(
237+
{
238+
'requires.txt': '',
239+
},
240+
self.site_dir.joinpath('egginfo_pkg.egg-info'),
241+
)
242+
deps = requires('egginfo-pkg')
243+
assert deps == []
244+
235245
def test_requires_dist_info(self):
236246
deps = requires('distinfo-pkg')
237247
assert len(deps) == 2

0 commit comments

Comments
 (0)