Skip to content

Commit

Permalink
Upgrade tests to Kinto master
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Apr 12, 2017
1 parent 09db81f commit 49863e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 6 additions & 4 deletions kinto_emailer/tests/test_includeme.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ class EmailerTest(BaseWebTest, unittest.TestCase):
api_prefix = "v1"
config = 'config/kinto.ini'

def get_app_settings(self, extras=None):
ini_path = os.path.join(HERE, self.config)
@classmethod
def get_app_settings(cls, extras=None):
ini_path = os.path.join(HERE, cls.config)
config = configparser.ConfigParser()
config.read(ini_path)
settings = dict(config.items('app:main'))
Expand Down Expand Up @@ -325,8 +326,9 @@ def test_send_notification_calls_the_mailer_queue_if_configured(self):


class SignerEventsTest(EmailerTest):
def get_app_settings(self, extras=None):
settings = super(SignerEventsTest, self).get_app_settings(extras)
@classmethod
def get_app_settings(cls, extras=None):
settings = super().get_app_settings(extras)
settings['kinto.includes'] += ' kinto_signer'
settings['kinto.signer.resources'] = (
'/buckets/staging/collections/addons;'
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def read_file(filename):


REQUIREMENTS = [
'kinto>5',
'pyramid<1.8',
'kinto > 5',
'pyramid_mailer',
]

Expand Down

0 comments on commit 49863e4

Please sign in to comment.