Skip to content

Commit 61f6062

Browse files
committed
fix tests
1 parent 3b2282f commit 61f6062

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

ckan/config/middleware/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class CKANSecureCookieSessionInterface(SecureCookieSessionInterface):
4242
"""Flask cookie-based sessions with expration support.
4343
"""
4444

45+
def __init__(self, app: CKANApp):
46+
pass
47+
4548
def open_session(self, app: CKANApp, request: Request):
4649
session = super().open_session(app, request)
4750
if session:

ckan/config/middleware/flask_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _get_interface(self, app: CKANApp):
8282
option_name = f"ckan.session.custom_type.{session_type}.import_path"
8383

8484
if path := config.get(option_name):
85-
return import_string(path)()
85+
return import_string(path)(app)
8686

8787
return super()._get_interface(app)
8888

test-core.ini

-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ port = 5000
1616

1717
[app:main]
1818
use = egg:ckan
19-
cache_dir = %(here)s/data
2019
debug = false
2120
testing = true
2221

@@ -79,17 +78,11 @@ ckan.datasets_per_page = 20
7978

8079
ckan.activity_streams_email_notifications = True
8180

82-
beaker.session.key = ckan
83-
beaker.session.secret = %(SECRET_KEY)s
8481
WTF_CSRF_SECRET_KEY = %(SECRET_KEY)s
8582

8683
## background jobs
8784
ckan.jobs.timeout = 180
8885

89-
## Session settings ############################################################
90-
beaker.session.validate_key = zsWPlD6NnawCi_QXOoxG-T91Fdo
91-
92-
9386
# Logging configuration
9487
[loggers]
9588
keys = root, ckan, sqlalchemy

0 commit comments

Comments
 (0)