def test_force_signing(monkeypatch):
 def not_forced(ids, force, reason):
  assert (not force)
 monkeypatch.setattr(SIGN_ADDONS, not_forced)
 call_command('sign_addons', 123)
 def is_forced(ids, force, reason):
  assert force
 monkeypatch.setattr(SIGN_ADDONS, is_forced)
 call_command('sign_addons', 123, force=True)

def test_force_signing ( monkeypatch ) : def not_forced ( ids , force , reason ) : assert ( not force ) monkeypatch . setattr ( SIGN_ADDONS , not_forced ) call_command ( 'sign_addons' , 123 ) def is_forced ( ids , force , reason ) : assert force monkeypatch . setattr ( SIGN_ADDONS , is_forced ) call_command ( 'sign_addons' , 123 , force = True )
you can force signing an addon even if its already signed .