Skip to content

Commit

Permalink
Merge pull request #1087 from Kinto/birdbrained-patch-2
Browse files Browse the repository at this point in the history
Update to Pyramid 1.8
  • Loading branch information
Natim authored Feb 17, 2017
2 parents 61ad654 + 5ea8ebd commit 7872d7b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This document describes changes between each past release.
- Move generic API schemas (e.g TimeStamps and HeaderFields) from `kinto.core.resource.schema`
to a sepate file on `kinto.core.schema`. (#1054)
- Upgraded the kinto-admin to version 1.9.0 (#1086)
- Upgrade to Pyramid 1.8 (#1087)


5.3.2 (2017-01-31)
Expand Down
1 change: 0 additions & 1 deletion kinto/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# Module version, as defined in PEP-0396.
__version__ = pkg_resources.get_distribution('kinto').version # FIXME?


DEFAULT_SETTINGS = {
'backoff': None,
'batch_max_requests': 25,
Expand Down
2 changes: 1 addition & 1 deletion kinto/core/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def effective_principals(self, request):
def unauthenticated_userid(self, request):
settings = request.registry.settings

credentials = self._get_credentials(request)
credentials = base_auth.extract_http_basic_credentials(request)
if credentials:
username, password = credentials
if not username:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def read_file(filename):
'jsonschema',
'jsonpatch',
'python-dateutil',
'pyramid >1.7,<1.8',
'pyramid > 1.8',
'pyramid_multiauth >= 0.8', # User on policy selected event.
'ruamel.yaml',
'transaction',
Expand Down
6 changes: 3 additions & 3 deletions tests/core/test_initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_specified_default_settings_are_overriden_by_application(self):
self.assertEqual(config.registry.settings['paginate_by'], 5)

def test_backends_are_not_instantiated_by_default(self):
config = Configurator(settings=kinto.core.DEFAULT_SETTINGS)
config = Configurator(settings={**kinto.core.DEFAULT_SETTINGS})
kinto.core.initialize(config, '0.0.1', 'project_name')
self.assertFalse(hasattr(config.registry, 'storage'))
self.assertFalse(hasattr(config.registry, 'cache'))
Expand Down Expand Up @@ -430,7 +430,7 @@ def test_http_host_overrides_the_request_headers(self):

class PluginsTest(unittest.TestCase):
def test_kinto_core_includes_are_included_manually(self):
config = Configurator(settings=kinto.core.DEFAULT_SETTINGS)
config = Configurator(settings={**kinto.core.DEFAULT_SETTINGS})
config.add_settings({'includes': 'elastic history'})
config.route_prefix = 'v2'

Expand All @@ -442,7 +442,7 @@ def test_kinto_core_includes_are_included_manually(self):
config.include.assert_any_call('history')

def make_app(self):
config = Configurator(settings=kinto.core.DEFAULT_SETTINGS)
config = Configurator(settings={**kinto.core.DEFAULT_SETTINGS})
config.add_settings({
'permission_backend': 'kinto.core.permission.memory',
'includes': 'tests.core.testplugin'
Expand Down

0 comments on commit 7872d7b

Please sign in to comment.