[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ftp-team/dak][master] 2 commits: make flake8 happy



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

2 changed files:

Changes:

  • daklib/dakapt.py
    ... ... @@ -22,10 +22,11 @@ interfaces around python-apt
    22 22
     
    
    23 23
     import apt_pkg
    
    24 24
     
    
    25
    -"""
    
    26
    -wrapper around `apt_pkg.Hashes`
    
    27
    -"""
    
    25
    +
    
    28 26
     class DakHashes(object):
    
    27
    +    """
    
    28
    +    wrapper around `apt_pkg.Hashes`
    
    29
    +    """
    
    29 30
         def __init__(self, *args, **kwargs):
    
    30 31
             self._apt_hashes = apt_pkg.Hashes(*args, **kwargs)
    
    31 32
     
    

  • tests/test_daklib_dakapt.py
    ... ... @@ -23,9 +23,10 @@ from base_test import DakTestCase
    23 23
     
    
    24 24
     import daklib.dakapt
    
    25 25
     
    
    26
    +
    
    26 27
     class TestDakHashes(DakTestCase):
    
    27 28
         def testDakHashes(self):
    
    28
    -        hashes = daklib.dakapt.DakHashes("/dev/null")
    
    29
    +        hashes = daklib.dakapt.DakHashes(open("/dev/null"))
    
    29 30
             self.assertEqual(hashes.md5, "d41d8cd98f00b204e9800998ecf8427e")
    
    30 31
             self.assertEqual(hashes.sha1, "da39a3ee5e6b4b0d3255bfef95601890afd80709")
    
    31 32
             self.assertEqual(hashes.sha256, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")


  • Reply to: