Skip to content

Commit 6e7f350

Browse files
committed
Refactor settings and environment configuration; remove unused Python settings, update requirements, and enhance response handling in FilterPostRoutingRule
1 parent 64c576e commit 6e7f350

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.vscode/settings.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@
4343
"password": "SYS"
4444
}
4545
],
46-
"[python]": {
47-
"editor.defaultFormatter": "ms-python.autopep8"
48-
},
49-
"python.formatting.provider": "none",
50-
"python.testing.pytestArgs": [
51-
"src"
52-
],
5346
"python.testing.unittestEnabled": false,
5447
"python.testing.pytestEnabled": true,
5548
"python.analysis.extraPaths": [

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dataclasses-json==0.5.7
22
requests==2.31.0
33
iris-pex-embedded-python>=3.0.0
4+
iris-embedded-python-wrapper
45
pytest

src/python/reddit/bp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def on_python_message(self, request: PostMessage):
3838
request.found = 'Cat'
3939

4040
if request.found is not None:
41-
self.send_request_sync(self.target,request)
42-
return iris.cls('Ens.Response')._New()
41+
rsp = self.send_request_sync(self.target,request)
42+
return iris.cls('Ens.StringResponse')._New(rsp.found)

src/python/tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
# add reddit to path
66
sys.path.append(join(root_dir,"reddit"))
77

8+
import os
9+
os.environ['IRISINSTALLDIR'] = "/opt/intersystems/iris"
10+
os.environ['IRISUSERNAME'] = "SuperUser"
11+
os.environ['IRISPASSWORD'] = "SYS"

0 commit comments

Comments
 (0)