import mock
import pytest

from django.conf import settings
from django.core.management import call_command
from django.core.management.base import CommandError

from olympia import amo
from olympia.addons.management.commands import approve_addons
from olympia.devhub.models import AddonLog
from olympia.editors.models import ReviewerScore


# Where to monkeypatch "lib.crypto.tasks.sign_addons" so it's correctly mocked.
SIGN_ADDONS = 'olympia.addons.management.commands.sign_addons.sign_addons'


# Test the "sign_addons" command.

def test_no_overridden_settings(monkeypatch):
    assert not settings.SIGNING_SERVER
    assert not settings.PRELIMINARY_SIGNING_SERVER

    def no_endpoint(ids, **kwargs):
        assert not settings.SIGNING_SERVER