Commit 3ba041d 1 parent 9849517 commit 3ba041d Copy full SHA for 3ba041d
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Automated tests for the `py2deb' package.
2
2
#
3
3
# Author: Peter Odding <peter.odding@paylogic.com>
4
- # Last Change: July 31 , 2020
4
+ # Last Change: August 4 , 2020
5
5
# URL: https://py2deb.readthedocs.io
6
6
7
7
"""
@@ -348,7 +348,13 @@ def test_conversion_of_extras(self):
348
348
expression = '%s (= 3.6.0)' % fix_name_prefix ('python-raven-flask' )
349
349
assert expression in relationships
350
350
# Check that a package with the extra in the filename was generated.
351
- assert find_package_archive (archives , fix_name_prefix ('python-raven-flask' ))
351
+ archive = find_package_archive (archives , fix_name_prefix ('python-raven-flask' ))
352
+ assert archive
353
+ # Use deb-pkg-tools to inspect the package metadata.
354
+ metadata , contents = inspect_package (archive )
355
+ logger .debug ("Metadata of generated package: %s" , dict (metadata ))
356
+ # Check that a "Provides" field was added.
357
+ assert metadata ['Provides' ].matches (fix_name_prefix ('python-raven' ))
352
358
353
359
def test_conversion_of_environment_markers (self ):
354
360
"""
You can’t perform that action at this time.
0 commit comments