Skip to content

Commit

Permalink
Add test capturing expectation when requires.txt is empty. Ref #367.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 15, 2022
1 parent 2ef0770 commit 96c79f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_api.py
Expand Up @@ -232,6 +232,16 @@ def test_requires_egg_info(self):
assert len(deps) == 2
assert any(dep == 'wheel >= 1.0; python_version >= "2.7"' for dep in deps)

def test_requires_egg_info_empty(self):
fixtures.build_files(
{
'requires.txt': '',
},
self.site_dir.joinpath('egginfo_pkg.egg-info'),
)
deps = requires('egginfo-pkg')
assert deps == []

def test_requires_dist_info(self):
deps = requires('distinfo-pkg')
assert len(deps) == 2
Expand Down

0 comments on commit 96c79f6

Please sign in to comment.