Skip to content

Commit f536fc4

Browse files
committed
also add tests for build_dep
1 parent be833c7 commit f536fc4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
3.81 KB
Binary file not shown.

tests/test_metadata_extractors.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,17 @@ def test_doc_files(self, doc_files, license, other):
358358
('obal-0.5.1.tar.gz', False,
359359
[['BuildRequires', 'python2-devel'], ['BuildRequires', 'python-setuptools']],
360360
[['Requires', 'python-ansible', '>=', '2.5'], ['Requires', 'python-setuptools']]),
361+
('djangorestframework-queryfields-1.0.0.tar.gz', True,
362+
[['BuildRequires', 'python2-devel'], ['BuildRequires', 'python-django'], ['BuildRequires', 'python-djangorestframework'],
363+
['BuildRequires', 'python-mock-django'], ['BuildRequires', 'python-pytest-django'], ['BuildRequires', 'python-setuptools'],
364+
['BuildRequires', 'python-setuptools'], ['BuildRequires', 'python-wheel']],
365+
[]),
366+
('djangorestframework-queryfields-1.0.0.tar.gz', False,
367+
[['BuildRequires', 'python2-devel'], ['BuildRequires', 'python-setuptools']],
368+
[]),
361369
])
362370
def test_extras_require(self, archive, include_extras, expected_build, expected_runtime):
363-
name, version = archive.split('-')
371+
name, version = archive.rsplit('-', 1)
364372
extractor = me.SetupPyMetadataExtractor('{0}{1}'.format(
365373
self.td_dir, archive), name, self.nc, version[:5],
366374
include_extras_require=include_extras)

0 commit comments

Comments
 (0)