Skip to content

Commit 1e55551

Browse files
committed
also add tests for build_dep
1 parent 26aefbe commit 1e55551

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
@@ -362,9 +362,17 @@ def test_doc_files(self, doc_files, license, other):
362362
('obal-0.5.1.tar.gz', False,
363363
[['BuildRequires', 'python2-devel'], ['BuildRequires', 'python-setuptools']],
364364
[['Requires', 'python-ansible', '>=', '2.5'], ['Requires', 'python-setuptools']]),
365+
('djangorestframework-queryfields-1.0.0.tar.gz', True,
366+
[['BuildRequires', 'python2-devel'], ['BuildRequires', 'python-django'], ['BuildRequires', 'python-djangorestframework'],
367+
['BuildRequires', 'python-mock-django'], ['BuildRequires', 'python-pytest-django'], ['BuildRequires', 'python-setuptools'],
368+
['BuildRequires', 'python-setuptools'], ['BuildRequires', 'python-wheel']],
369+
[]),
370+
('djangorestframework-queryfields-1.0.0.tar.gz', False,
371+
[['BuildRequires', 'python2-devel'], ['BuildRequires', 'python-setuptools']],
372+
[]),
365373
])
366374
def test_extras_require(self, archive, include_extras, expected_build, expected_runtime):
367-
name, version = archive.split('-')
375+
name, version = archive.rsplit('-', 1)
368376
extractor = me.SetupPyMetadataExtractor('{0}{1}'.format(
369377
self.td_dir, archive), name, self.nc, version[:5],
370378
include_extras_require=include_extras)

0 commit comments

Comments
 (0)