Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Oct 26, 2016
1 parent e2c1189 commit a482105
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions kinto_amo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def includeme(config):
resource[blocklist] = parse_resource(settings_value)

for resource in resources.values():
diff = set(resource.keys()) - {'addons', 'plugins', 'gfx', 'certificates'}
if len(diff) != 0:
raise ConfigurationError("Invalid blocklist: %s" % diff)
inter = set(resource.keys()) & {'addons', 'plugins', 'gfx', 'certificates'}
if len(inter) != 4:
raise ConfigurationError("Invalid blocklist: %s" % inter)

config.registry.amo_resources = resources

Expand Down
2 changes: 2 additions & 0 deletions kinto_amo/tests/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ def get_app_settings(self, extras=None):
config = configparser.ConfigParser()
config.read(ini_path)
settings = dict(config.items('app:main'))
if extras:
settings.update(extras)
return settings
2 changes: 0 additions & 2 deletions kinto_amo/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import mock
import os
import pytest
import unittest
import webtest
import xml.etree.ElementTree as ET

from amo2kinto import constants
Expand Down

0 comments on commit a482105

Please sign in to comment.