Skip to content

Commit

Permalink
fix test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaconDesperado committed Apr 16, 2024
1 parent eaf96e1 commit d8c41cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions flask_mab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@
:license: BSD, see LICENSE for more details.
"""

from flask import current_app, g, request
from flask import current_app, request
import json
import flask_mab.storage
from flask_mab.mab import Mab
import types
from collections import namedtuple
from flask import _request_ctx_stack
from functools import wraps

try:
from flask import _app_ctx_stack as stack
except ImportError:
from flask import _request_ctx_stack as stack

__version__ = "2.0.1"

Expand Down
2 changes: 1 addition & 1 deletion tests/test_blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_improper_configuration(self):
rv = app_client.get("/")

with self.assertRaises(MABConfigException):
app_client.set_cookie("localhost", "MAB", '{"some_bandit": "blue"}')
app_client.set_cookie("MAB", '{"some_bandit": "blue"}', domain="localhost")
app_client.get("/reward")

def get_arm(self, headers):
Expand Down

0 comments on commit d8c41cd

Please sign in to comment.