[FIX] Update tests to new return signature of behaviour

This commit is contained in:
Graeme Gellatly
2017-10-08 19:46:52 +13:00
parent 4375c7bc2f
commit 142cdfbb20
5 changed files with 66 additions and 65 deletions

View File

@@ -145,7 +145,7 @@ class PrintingPrinter(models.Model):
def _set_option_tray(self, report, value):
"""Note we use self here as some older PPD use tray
rather than InputSlot so we may need to query printer in override"""
return {'InputSlot': str(value)}
return {'InputSlot': str(value)} if value else {}
@staticmethod
def _set_option_noop(report, value):