Verified Commit c882d859 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Disable branch coverage on PackageGroup.__init__ if/elif

Technically there is one more possibility but this never can be called
by the code.
parent 1714996c
...@@ -81,7 +81,8 @@ class PackageGroups(object): ...@@ -81,7 +81,8 @@ class PackageGroups(object):
x for x in packages if x for x in packages if
x.packageupload_set.latest('uploaded').uploaded > deltamax x.packageupload_set.latest('uploaded').uploaded > deltamax
] ]
elif (deltamin is not None and deltamax is None): # Last actual possibility
elif (deltamin is not None and deltamax is None): # pragma: no branch
self.packages = [ self.packages = [
x for x in packages if x for x in packages if
x.packageupload_set.latest('uploaded').uploaded <= deltamin x.packageupload_set.latest('uploaded').uploaded <= deltamin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment