jaseci 1.4.0.9__py3-none-any.whl → 1.4.0.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jaseci might be problematic. Click here for more details.
- jaseci/VERSION +1 -1
- jaseci/__init__.py +3 -0
- jaseci/actions/standard/elastic.py +3 -2
- jaseci/actions/standard/mail.py +3 -2
- jaseci/actions/standard/std.py +3 -2
- jaseci/actions/standard/stripe.py +3 -2
- jaseci/actions/standard/task.py +3 -5
- jaseci/actions/standard/tests/test_mail_lib.py +8 -7
- jaseci/actions/tests/test_std.py +4 -5
- jaseci/actor/walker.py +6 -3
- jaseci/api/config_api.py +3 -2
- jaseci/api/jac_api.py +2 -2
- jaseci/api/jsorc_api.py +60 -121
- jaseci/api/prometheus_api.py +14 -20
- jaseci/api/queue_api.py +9 -5
- jaseci/api/tests/test_global_api.py +3 -3
- jaseci/api/tests/test_logger_api.py +3 -3
- jaseci/api/user_api.py +3 -3
- jaseci/api/webhook_api.py +6 -4
- jaseci/attr/action.py +10 -4
- jaseci/element/master.py +2 -0
- jaseci/element/super_master.py +2 -0
- jaseci/hook/memory.py +3 -1
- jaseci/hook/redis.py +5 -4
- jaseci/jac/interpreter/interp.py +16 -4
- jaseci/jac/tests/test_book.py +2 -2
- jaseci/jsctl/jsctl.py +48 -15
- jaseci/jsctl/tests/test_jsctl.py +5 -0
- jaseci/jsorc.py +733 -0
- jaseci/jsorc_settings.py +184 -0
- jaseci/manifests/database.yaml +107 -0
- jaseci/manifests/elastic.yaml +5923 -0
- jaseci/manifests/prometheus.yaml +1273 -0
- jaseci/{svc/jsorc-backup/jaseci-redis.yaml → manifests/redis.yaml} +20 -0
- jaseci/svc/__init__.py +0 -25
- jaseci/svc/{elastic/elastic.py → elastic_svc.py} +5 -16
- jaseci/svc/kube_svc.py +240 -0
- jaseci/svc/{mail/mail.py → mail_svc.py} +14 -17
- jaseci/svc/{prometheus/prometheus.py → prome_svc.py} +5 -16
- jaseci/svc/{redis/redis.py → redis_svc.py} +14 -26
- jaseci/svc/{stripe/stripe.py → stripe_svc.py} +4 -7
- jaseci/svc/{task/task.py → task_svc.py} +27 -24
- jaseci/svc/{task/common.py → tasks.py} +287 -293
- jaseci/tests/jac_test_progs.py +21 -0
- jaseci/tests/test_core.py +14 -15
- jaseci/tests/test_jac.py +59 -60
- jaseci/tests/test_node.py +6 -13
- jaseci/tests/test_progs.py +74 -52
- jaseci/tests/test_stripe.py +6 -10
- jaseci/utils/actions/actions_manager.py +254 -0
- jaseci/{svc/actions_optimizer → utils/actions}/actions_optimizer.py +9 -19
- jaseci/utils/json_handler.py +2 -3
- jaseci/utils/test_core.py +4 -5
- jaseci/utils/utils.py +12 -0
- {jaseci-1.4.0.9.dist-info → jaseci-1.4.0.11.dist-info}/METADATA +2 -1
- {jaseci-1.4.0.9.dist-info → jaseci-1.4.0.11.dist-info}/RECORD +63 -80
- jaseci/svc/common.py +0 -763
- jaseci/svc/config.py +0 -9
- jaseci/svc/elastic/__init__.py +0 -3
- jaseci/svc/elastic/config.py +0 -8
- jaseci/svc/elastic/manifest.py +0 -1
- jaseci/svc/jsorc-backup/jsorc.py +0 -182
- jaseci/svc/jsorc-backup/promon/__init__.py +0 -0
- jaseci/svc/jsorc-backup/promon/promon.py +0 -202
- jaseci/svc/mail/__init__.py +0 -4
- jaseci/svc/mail/config.py +0 -25
- jaseci/svc/meta.py +0 -164
- jaseci/svc/postgres/__init__.py +0 -0
- jaseci/svc/postgres/manifest.py +0 -106
- jaseci/svc/prometheus/__init__.py +0 -5
- jaseci/svc/prometheus/config.py +0 -11
- jaseci/svc/prometheus/manifest.py +0 -1102
- jaseci/svc/redis/__init__.py +0 -5
- jaseci/svc/redis/config.py +0 -10
- jaseci/svc/redis/manifest.py +0 -65
- jaseci/svc/state.py +0 -17
- jaseci/svc/stripe/__init__.py +0 -3
- jaseci/svc/stripe/config.py +0 -7
- jaseci/svc/task/__init__.py +0 -5
- jaseci/svc/task/config.py +0 -17
- /jaseci/{svc/actions_optimizer → manifests}/__init__.py +0 -0
- /jaseci/{svc/jsorc-backup → utils/actions}/__init__.py +0 -0
- /jaseci/{svc/actions_optimizer → utils/actions}/actions_state.py +0 -0
- {jaseci-1.4.0.9.dist-info → jaseci-1.4.0.11.dist-info}/LICENSE +0 -0
- {jaseci-1.4.0.9.dist-info → jaseci-1.4.0.11.dist-info}/WHEEL +0 -0
- {jaseci-1.4.0.9.dist-info → jaseci-1.4.0.11.dist-info}/entry_points.txt +0 -0
- {jaseci-1.4.0.9.dist-info → jaseci-1.4.0.11.dist-info}/top_level.txt +0 -0
jaseci/tests/test_core.py
CHANGED
|
@@ -6,7 +6,7 @@ from jaseci.actor.sentinel import Sentinel
|
|
|
6
6
|
from jaseci.element.element import Element
|
|
7
7
|
from jaseci.graph.graph import Graph
|
|
8
8
|
from jaseci.graph.node import Node
|
|
9
|
-
from jaseci
|
|
9
|
+
from jaseci import JsOrc
|
|
10
10
|
from jaseci.utils.utils import TestCaseHelper, get_all_subclasses
|
|
11
11
|
from jaseci.actor.architype import Architype
|
|
12
12
|
|
|
@@ -14,14 +14,13 @@ from jaseci.actor.architype import Architype
|
|
|
14
14
|
class ArchitypeTests(TestCaseHelper, TestCase):
|
|
15
15
|
def setUp(self):
|
|
16
16
|
super().setUp()
|
|
17
|
-
self.meta = MetaService(run_svcs=False)
|
|
18
17
|
|
|
19
18
|
def tearDown(self):
|
|
20
19
|
super().tearDown()
|
|
21
20
|
|
|
22
21
|
def test_object_creation_basic_no_side_creation(self):
|
|
23
22
|
""" """
|
|
24
|
-
mast =
|
|
23
|
+
mast = JsOrc.master()
|
|
25
24
|
num_objs = len(mast._h.mem.keys())
|
|
26
25
|
node1 = Node(m_id=mast._m_id, h=mast._h)
|
|
27
26
|
node2 = Node(m_id=mast._m_id, h=mast._h, parent=node1)
|
|
@@ -40,7 +39,7 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
40
39
|
|
|
41
40
|
def test_edge_removal_updates_nodes_edgelist(self):
|
|
42
41
|
""" """
|
|
43
|
-
mast =
|
|
42
|
+
mast = JsOrc.master()
|
|
44
43
|
node1 = Node(m_id=mast._m_id, h=mast._h)
|
|
45
44
|
node2 = Node(m_id=mast._m_id, h=mast._h)
|
|
46
45
|
edge = node1.attach_outbound(node2)
|
|
@@ -55,7 +54,7 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
55
54
|
"""
|
|
56
55
|
Test that the destroy of sentinels clears owned objects
|
|
57
56
|
"""
|
|
58
|
-
mast =
|
|
57
|
+
mast = JsOrc.master()
|
|
59
58
|
num_objs = len(mast._h.mem.keys())
|
|
60
59
|
self.assertEqual(num_objs, 2)
|
|
61
60
|
new_graph = Graph(m_id=mast._m_id, h=mast._h)
|
|
@@ -77,7 +76,7 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
77
76
|
Test saving object to json and back to python dict
|
|
78
77
|
"""
|
|
79
78
|
for i in get_all_subclasses(Element):
|
|
80
|
-
kwargs = {"m_id": 0, "h":
|
|
79
|
+
kwargs = {"m_id": 0, "h": JsOrc.hook()}
|
|
81
80
|
orig = i(**kwargs)
|
|
82
81
|
blob1 = orig.json(detailed=True)
|
|
83
82
|
new = i(**kwargs)
|
|
@@ -87,11 +86,11 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
87
86
|
self.assertTrue(orig.is_equivalent(new))
|
|
88
87
|
|
|
89
88
|
def test_supermaster_can_touch_all_data(self):
|
|
90
|
-
mh =
|
|
91
|
-
mast =
|
|
92
|
-
mast2 =
|
|
89
|
+
mh = JsOrc.hook()
|
|
90
|
+
mast = JsOrc.master(h=mh)
|
|
91
|
+
mast2 = JsOrc.master(h=mh)
|
|
93
92
|
node12 = Node(m_id=mast2._m_id, h=mast2._h)
|
|
94
|
-
supmast =
|
|
93
|
+
supmast = JsOrc.super_master(h=mh)
|
|
95
94
|
bad = mh.get_obj(mast._m_id, node12.jid)
|
|
96
95
|
good = mh.get_obj(supmast._m_id, node12.jid)
|
|
97
96
|
self.assertEqual(good, node12)
|
|
@@ -100,13 +99,13 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
100
99
|
|
|
101
100
|
def test_id_list_smart_name_error(self):
|
|
102
101
|
self.logger_on()
|
|
103
|
-
mast =
|
|
102
|
+
mast = JsOrc.master()
|
|
104
103
|
sent = Sentinel(m_id=mast._m_id, h=mast._h)
|
|
105
104
|
self.assertIn("arch_ids", sent.arch_ids.obj_for_id_not_exist_error(0))
|
|
106
105
|
|
|
107
106
|
def test_dont_store_invalid_feilds_in_blob(self):
|
|
108
107
|
self.logger_on()
|
|
109
|
-
mast =
|
|
108
|
+
mast = JsOrc.master()
|
|
110
109
|
sent = Sentinel(m_id=mast._m_id, h=mast._h)
|
|
111
110
|
sent.fake_data = 5
|
|
112
111
|
stored = sent.jsci_payload()
|
|
@@ -115,7 +114,7 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
115
114
|
self.assertNotIn("fake_data", vars(sent2).keys())
|
|
116
115
|
|
|
117
116
|
def test_sentinel_default_archs_dont_grow(self):
|
|
118
|
-
mast =
|
|
117
|
+
mast = JsOrc.master()
|
|
119
118
|
sent = Sentinel(m_id=mast._m_id, h=mast._h)
|
|
120
119
|
sent.register_code(text="node simple; walker init {}")
|
|
121
120
|
before = sent._h.get_object_distribution()[Architype]
|
|
@@ -128,7 +127,7 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
128
127
|
self.assertEqual(before, after)
|
|
129
128
|
|
|
130
129
|
def test_sentinel_default_archs_dont_grow_multi_compile(self):
|
|
131
|
-
mast =
|
|
130
|
+
mast = JsOrc.master()
|
|
132
131
|
sent = Sentinel(m_id=mast._m_id, h=mast._h)
|
|
133
132
|
sent.register_code(text="node simple; walker init {}")
|
|
134
133
|
before = sent._h.get_object_distribution()[Architype]
|
|
@@ -145,7 +144,7 @@ class ArchitypeTests(TestCaseHelper, TestCase):
|
|
|
145
144
|
self.assertNotEqual(before_id, after_id)
|
|
146
145
|
|
|
147
146
|
def test_id_list_heals(self):
|
|
148
|
-
mast =
|
|
147
|
+
mast = JsOrc.master()
|
|
149
148
|
sent = Sentinel(m_id=mast._m_id, h=mast._h)
|
|
150
149
|
sent.register_code(text="node simple; walker init {}")
|
|
151
150
|
before = len(sent.arch_ids)
|
jaseci/tests/test_jac.py
CHANGED
|
@@ -9,7 +9,7 @@ from jaseci.actor.sentinel import Sentinel
|
|
|
9
9
|
from jaseci.graph.graph import Graph
|
|
10
10
|
from jaseci.jac.jac_parse.jacLexer import jacLexer
|
|
11
11
|
from jaseci.jac.jac_parse.jacParser import jacParser
|
|
12
|
-
from jaseci
|
|
12
|
+
from jaseci import JsOrc
|
|
13
13
|
from jaseci.utils.utils import TestCaseHelper
|
|
14
14
|
|
|
15
15
|
|
|
@@ -18,7 +18,6 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
18
18
|
|
|
19
19
|
def setUp(self):
|
|
20
20
|
super().setUp()
|
|
21
|
-
self.meta = MetaService()
|
|
22
21
|
|
|
23
22
|
def tearDown(self):
|
|
24
23
|
super().tearDown()
|
|
@@ -34,14 +33,14 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
34
33
|
|
|
35
34
|
def test_sentinel_loading_jac_code(self):
|
|
36
35
|
"""Test the generation of jaseci trees for programs in grammar"""
|
|
37
|
-
sent = Sentinel(m_id=0, h=
|
|
36
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
38
37
|
sent.register_code(jtc.prog1)
|
|
39
38
|
self.assertIsNotNone(sent.run_architype("get_gen_day"))
|
|
40
39
|
self.assertIsNotNone(sent.arch_ids.get_obj_by_name("week", kind="node"))
|
|
41
40
|
|
|
42
41
|
def test_sentinel_loading_jac_code_multiple_times(self):
|
|
43
42
|
"""Test registering resets correctly for multiple attempts"""
|
|
44
|
-
sent = Sentinel(m_id=0, h=
|
|
43
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
45
44
|
sent.register_code(jtc.prog0)
|
|
46
45
|
num_arch = len(sent.arch_ids)
|
|
47
46
|
sent.register_code(jtc.prog0)
|
|
@@ -51,7 +50,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
51
50
|
|
|
52
51
|
def test_sentinel_register_dep_on_static_errors(self):
|
|
53
52
|
"""Test Jac registering is dependant on correct static/dynamic code"""
|
|
54
|
-
sent = Sentinel(m_id=0, h=
|
|
53
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
55
54
|
correct = "node b { has anchor a; }"
|
|
56
55
|
wrong1 = "adfdsf"
|
|
57
56
|
sent.register_code(correct)
|
|
@@ -67,7 +66,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
67
66
|
|
|
68
67
|
def test_sentinel_loading_arhitype(self):
|
|
69
68
|
"""Test the generation of jaseci trees for programs in grammar"""
|
|
70
|
-
sent = Sentinel(m_id=0, h=
|
|
69
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
71
70
|
sent.register_code(jtc.prog1)
|
|
72
71
|
self.assertGreater(
|
|
73
72
|
len(sent.arch_ids.get_obj_by_name("month", kind="node").code_ir), 5
|
|
@@ -75,7 +74,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
75
74
|
|
|
76
75
|
def test_sentinel_running_basic_walker(self):
|
|
77
76
|
"""Test the execution of a basic walker building graph"""
|
|
78
|
-
sent = Sentinel(m_id=0, h=
|
|
77
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
79
78
|
sent.register_code(jtc.prog1)
|
|
80
79
|
test_node = sent.arch_ids.get_obj_by_name("life", kind="node").run()
|
|
81
80
|
test_walker = sent.run_architype("get_gen_day")
|
|
@@ -91,7 +90,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
91
90
|
|
|
92
91
|
def test_sentinel_setp_running_walker(self):
|
|
93
92
|
"""Test the execution of a basic walker building graph"""
|
|
94
|
-
sent = Sentinel(m_id=0, h=
|
|
93
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
95
94
|
sent.register_code(jtc.prog1)
|
|
96
95
|
test_node = sent.arch_ids.get_obj_by_name("life", kind="node").run()
|
|
97
96
|
test_walker = sent.run_architype("get_gen_day")
|
|
@@ -114,7 +113,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
114
113
|
"""
|
|
115
114
|
Test that no loss or gain of data on second trak on second trek
|
|
116
115
|
"""
|
|
117
|
-
sent = Sentinel(m_id=0, h=
|
|
116
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
118
117
|
gph = Graph(m_id=0, h=sent._h)
|
|
119
118
|
sent.register_code(jtc.prog1)
|
|
120
119
|
test_node = sent.arch_ids.get_obj_by_name("life", kind="node").run()
|
|
@@ -137,7 +136,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
137
136
|
scalably (node contexts dont get deleted when arch_ids deleted)
|
|
138
137
|
"""
|
|
139
138
|
lact.load_local_actions(os.path.dirname(__file__) + "/infer.py")
|
|
140
|
-
sent = Sentinel(m_id=0, h=
|
|
139
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
141
140
|
sent.register_code(jtc.prog1)
|
|
142
141
|
test_node = sent.arch_ids.get_obj_by_name("life", kind="node").run()
|
|
143
142
|
test_walker = sent.run_architype("get_gen_day")
|
|
@@ -154,7 +153,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
154
153
|
|
|
155
154
|
def test_sent_loads_complex_walker_and_arch(self):
|
|
156
155
|
"""Test loading attributes of arch and walkers"""
|
|
157
|
-
sent = Sentinel(m_id=0, h=
|
|
156
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
158
157
|
sent.register_code(jtc.prog1)
|
|
159
158
|
test_node = sent.arch_ids.get_obj_by_name("testnode", kind="node").run()
|
|
160
159
|
test_walker = sent.run_architype("testwalk")
|
|
@@ -173,7 +172,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
173
172
|
|
|
174
173
|
def test_multiple_edged_between_nodes_work(self):
|
|
175
174
|
"""Test that multiple edges between the same two nodes are allowed"""
|
|
176
|
-
sent = Sentinel(m_id=0, h=
|
|
175
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
177
176
|
gph = Graph(m_id=0, h=sent._h)
|
|
178
177
|
sent.register_code(jtc.edgey)
|
|
179
178
|
test_walker = sent.run_architype("init")
|
|
@@ -188,7 +187,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
188
187
|
|
|
189
188
|
def test_multiple_edged_between_nodes_delete_all(self):
|
|
190
189
|
"""Test that multiple edges deleted correctly if delete all"""
|
|
191
|
-
sent = Sentinel(m_id=0, h=
|
|
190
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
192
191
|
gph = Graph(m_id=0, h=sent._h)
|
|
193
192
|
sent.register_code(jtc.edgey2)
|
|
194
193
|
test_walker = sent.run_architype("init")
|
|
@@ -199,7 +198,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
199
198
|
|
|
200
199
|
def test_multiple_edged_between_nodes_delete_all_specific(self):
|
|
201
200
|
"""Test that multiple edges deleted correctly if delete all"""
|
|
202
|
-
sent = Sentinel(m_id=0, h=
|
|
201
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
203
202
|
gph = Graph(m_id=0, h=sent._h)
|
|
204
203
|
sent.register_code(jtc.edgey2b)
|
|
205
204
|
test_walker = sent.run_architype("init")
|
|
@@ -210,7 +209,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
210
209
|
|
|
211
210
|
def test_multiple_edged_between_nodes_delete_all_labeled(self):
|
|
212
211
|
"""Test that multiple edges deleted correctly if delete all"""
|
|
213
|
-
sent = Sentinel(m_id=0, h=
|
|
212
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
214
213
|
gph = Graph(m_id=0, h=sent._h)
|
|
215
214
|
sent.register_code(jtc.edgey2c)
|
|
216
215
|
test_walker = sent.run_architype("init")
|
|
@@ -221,7 +220,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
221
220
|
|
|
222
221
|
def test_multiple_edged_between_nodes_delete_filtered(self):
|
|
223
222
|
"""Test that multiple edges deleted correctly if delete filtered"""
|
|
224
|
-
sent = Sentinel(m_id=0, h=
|
|
223
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
225
224
|
gph = Graph(m_id=0, h=sent._h)
|
|
226
225
|
sent.register_code(jtc.edgey3)
|
|
227
226
|
test_walker = sent.run_architype("init")
|
|
@@ -232,7 +231,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
232
231
|
|
|
233
232
|
def test_generic_can_be_used_to_specify_generic_edges(self):
|
|
234
233
|
"""Test that generic edge tag works"""
|
|
235
|
-
sent = Sentinel(m_id=0, h=
|
|
234
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
236
235
|
gph = Graph(m_id=0, h=sent._h)
|
|
237
236
|
sent.register_code(jtc.edgey4)
|
|
238
237
|
test_walker = sent.run_architype("init")
|
|
@@ -243,7 +242,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
243
242
|
|
|
244
243
|
def test_can_disconnect_multi_nodes_simultaneously(self):
|
|
245
244
|
"""Test disconnecting mutilpe nodes"""
|
|
246
|
-
sent = Sentinel(m_id=0, h=
|
|
245
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
247
246
|
gph = Graph(m_id=0, h=sent._h)
|
|
248
247
|
sent.register_code(jtc.edgey5)
|
|
249
248
|
test_walker = sent.run_architype("init")
|
|
@@ -254,7 +253,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
254
253
|
|
|
255
254
|
def test_can_connect_multi_nodes_simultaneously(self):
|
|
256
255
|
"""Test connecting mutilpe nodes"""
|
|
257
|
-
sent = Sentinel(m_id=0, h=
|
|
256
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
258
257
|
gph = Graph(m_id=0, h=sent._h)
|
|
259
258
|
sent.register_code(jtc.edgey6)
|
|
260
259
|
test_walker = sent.run_architype("init")
|
|
@@ -265,7 +264,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
265
264
|
|
|
266
265
|
def test_can_disconnect_multi_nodes_advanced(self):
|
|
267
266
|
"""Test disconnecting mutilpe nodes advanced"""
|
|
268
|
-
sent = Sentinel(m_id=0, h=
|
|
267
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
269
268
|
gph = Graph(m_id=0, h=sent._h)
|
|
270
269
|
sent.register_code(jtc.edgey7)
|
|
271
270
|
test_walker = sent.run_architype("init")
|
|
@@ -276,7 +275,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
276
275
|
|
|
277
276
|
def test_accessing_edges_basic(self):
|
|
278
277
|
"""Test accessing Edges"""
|
|
279
|
-
sent = Sentinel(m_id=0, h=
|
|
278
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
280
279
|
gph = Graph(m_id=0, h=sent._h)
|
|
281
280
|
sent.register_code(jtc.edge_access)
|
|
282
281
|
test_walker = sent.run_architype("init")
|
|
@@ -292,7 +291,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
292
291
|
|
|
293
292
|
def test_has_assign(self):
|
|
294
293
|
"""Test assignment on definition"""
|
|
295
|
-
sent = Sentinel(m_id=0, h=
|
|
294
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
296
295
|
gph = Graph(m_id=0, h=sent._h)
|
|
297
296
|
sent.register_code(jtc.has_assign)
|
|
298
297
|
test_walker = sent.run_architype("init")
|
|
@@ -309,7 +308,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
309
308
|
|
|
310
309
|
def test_global_get_set(self):
|
|
311
310
|
"""Test assignment on definition"""
|
|
312
|
-
mast =
|
|
311
|
+
mast = JsOrc.super_master()
|
|
313
312
|
sent = Sentinel(m_id=mast.jid, h=mast._h)
|
|
314
313
|
gph = Graph(m_id=mast.jid, h=mast._h)
|
|
315
314
|
sent.register_code(jtc.set_get_global)
|
|
@@ -323,7 +322,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
323
322
|
|
|
324
323
|
def test_global_set_requires_admin(self):
|
|
325
324
|
"""Test assignment on definition"""
|
|
326
|
-
mast =
|
|
325
|
+
mast = JsOrc.master()
|
|
327
326
|
sent = Sentinel(m_id=mast.jid, h=mast._h)
|
|
328
327
|
gph = Graph(m_id=mast.jid, h=mast._h)
|
|
329
328
|
sent.register_code(jtc.set_get_global2)
|
|
@@ -337,14 +336,14 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
337
336
|
|
|
338
337
|
def test_sentinel_version_label(self):
|
|
339
338
|
"""Test sentinel version labeling"""
|
|
340
|
-
mast =
|
|
339
|
+
mast = JsOrc.master()
|
|
341
340
|
sent = Sentinel(m_id=mast.jid, h=mast._h)
|
|
342
341
|
sent.register_code(jtc.version_label)
|
|
343
342
|
self.assertEqual(sent.version, "alpha-1.0")
|
|
344
343
|
|
|
345
344
|
def test_visibility_builtins(self):
|
|
346
345
|
"""Test builtins to see into nodes and edges"""
|
|
347
|
-
sent = Sentinel(m_id=0, h=
|
|
346
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
348
347
|
gph = Graph(m_id=0, h=sent._h)
|
|
349
348
|
sent.register_code(jtc.visibility_builtins)
|
|
350
349
|
test_walker = sent.run_architype("init")
|
|
@@ -357,7 +356,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
357
356
|
|
|
358
357
|
def test_spawn_ctx_for_edges_nodes(self):
|
|
359
358
|
"""Test builtins to see into nodes and edges"""
|
|
360
|
-
sent = Sentinel(m_id=0, h=
|
|
359
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
361
360
|
gph = Graph(m_id=0, h=sent._h)
|
|
362
361
|
sent.register_code(jtc.spawn_ctx_edge_node)
|
|
363
362
|
test_walker = sent.run_architype("init")
|
|
@@ -370,7 +369,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
370
369
|
|
|
371
370
|
def test_filter_ctx_for_edges_nodes(self):
|
|
372
371
|
"""Test builtins to see into nodes and edges"""
|
|
373
|
-
sent = Sentinel(m_id=0, h=
|
|
372
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
374
373
|
gph = Graph(m_id=0, h=sent._h)
|
|
375
374
|
sent.register_code(jtc.filter_ctx_edge_node)
|
|
376
375
|
test_walker = sent.run_architype("init")
|
|
@@ -380,7 +379,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
380
379
|
self.assertEqual(len(test_walker.report[1]), 0)
|
|
381
380
|
|
|
382
381
|
def test_null_handling(self):
|
|
383
|
-
sent = Sentinel(m_id=0, h=
|
|
382
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
384
383
|
gph = Graph(m_id=0, h=sent._h)
|
|
385
384
|
sent.register_code(jtc.null_handleing)
|
|
386
385
|
test_walker = sent.run_architype("init")
|
|
@@ -392,7 +391,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
392
391
|
self.assertEqual(test_walker.report[3], False)
|
|
393
392
|
|
|
394
393
|
def test_bool_type_convert(self):
|
|
395
|
-
sent = Sentinel(m_id=0, h=
|
|
394
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
396
395
|
gph = Graph(m_id=0, h=sent._h)
|
|
397
396
|
sent.register_code(jtc.bool_type_convert)
|
|
398
397
|
test_walker = sent.run_architype("init")
|
|
@@ -402,7 +401,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
402
401
|
self.assertEqual(True, test_walker.report[1]["name"])
|
|
403
402
|
|
|
404
403
|
def test_typecasts(self):
|
|
405
|
-
sent = Sentinel(m_id=0, h=
|
|
404
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
406
405
|
gph = Graph(m_id=0, h=sent._h)
|
|
407
406
|
sent.register_code(jtc.typecasts)
|
|
408
407
|
test_walker = sent.run_architype("init")
|
|
@@ -416,7 +415,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
416
415
|
self.assertEqual(test_walker.report[5], "Types comes back correct")
|
|
417
416
|
|
|
418
417
|
def test_typecast_error(self):
|
|
419
|
-
sent = Sentinel(m_id=0, h=
|
|
418
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
420
419
|
gph = Graph(m_id=0, h=sent._h)
|
|
421
420
|
sent.register_code(jtc.typecasts_error)
|
|
422
421
|
test_walker = sent.run_architype("init")
|
|
@@ -429,7 +428,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
429
428
|
)
|
|
430
429
|
|
|
431
430
|
def test_filter_on_context(self):
|
|
432
|
-
sent = Sentinel(m_id=0, h=
|
|
431
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
433
432
|
gph = Graph(m_id=0, h=sent._h)
|
|
434
433
|
sent.register_code(jtc.filter_on_context)
|
|
435
434
|
test_walker = sent.run_architype("init")
|
|
@@ -440,7 +439,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
440
439
|
self.assertIn("name", test_walker.report[0][2].keys())
|
|
441
440
|
|
|
442
441
|
def test_string_manipulation(self):
|
|
443
|
-
sent = Sentinel(m_id=0, h=
|
|
442
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
444
443
|
gph = Graph(m_id=0, h=sent._h)
|
|
445
444
|
sent.register_code(jtc.string_manipulation)
|
|
446
445
|
test_walker = sent.run_architype("init")
|
|
@@ -479,7 +478,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
479
478
|
self.assertEqual(rep[29], True)
|
|
480
479
|
|
|
481
480
|
def test_list_manipulation(self):
|
|
482
|
-
sent = Sentinel(m_id=0, h=
|
|
481
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
483
482
|
gph = Graph(m_id=0, h=sent._h)
|
|
484
483
|
sent.register_code(jtc.list_manipulation)
|
|
485
484
|
test_walker = sent.run_architype("init")
|
|
@@ -499,7 +498,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
499
498
|
self.assertEqual(rep[10], [])
|
|
500
499
|
|
|
501
500
|
def test_list_reversed(self):
|
|
502
|
-
sent = Sentinel(m_id=0, h=
|
|
501
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
503
502
|
gph = Graph(m_id=0, h=sent._h)
|
|
504
503
|
sent.register_code(jtc.list_reversed)
|
|
505
504
|
test_walker = sent.run_architype("init")
|
|
@@ -510,7 +509,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
510
509
|
self.assertEqual(rep[1], [4, 2, 7])
|
|
511
510
|
|
|
512
511
|
def test_dict_manipulation(self):
|
|
513
|
-
sent = Sentinel(m_id=0, h=
|
|
512
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
514
513
|
gph = Graph(m_id=0, h=sent._h)
|
|
515
514
|
sent.register_code(jtc.dict_manipulation)
|
|
516
515
|
test_walker = sent.run_architype("init")
|
|
@@ -527,7 +526,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
527
526
|
self.assertEqual(rep[7], {})
|
|
528
527
|
|
|
529
528
|
def test_string_join(self):
|
|
530
|
-
sent = Sentinel(m_id=0, h=
|
|
529
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
531
530
|
gph = Graph(m_id=0, h=sent._h)
|
|
532
531
|
sent.register_code(jtc.string_join)
|
|
533
532
|
test_walker = sent.run_architype("init")
|
|
@@ -537,7 +536,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
537
536
|
self.assertEqual(rep[0], "test_me_now")
|
|
538
537
|
|
|
539
538
|
def test_sub_list(self):
|
|
540
|
-
sent = Sentinel(m_id=0, h=
|
|
539
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
541
540
|
gph = Graph(m_id=0, h=sent._h)
|
|
542
541
|
sent.register_code(jtc.sub_list)
|
|
543
542
|
test_walker = sent.run_architype("init")
|
|
@@ -549,7 +548,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
549
548
|
self.assertEqual(rep[0][2], 7)
|
|
550
549
|
|
|
551
550
|
def test_destroy_and_misc(self):
|
|
552
|
-
sent = Sentinel(m_id=0, h=
|
|
551
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
553
552
|
gph = Graph(m_id=0, h=sent._h)
|
|
554
553
|
sent.register_code(jtc.destroy_and_misc)
|
|
555
554
|
test_walker = sent.run_architype("init")
|
|
@@ -574,7 +573,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
574
573
|
self.assertEqual(rep[9], True)
|
|
575
574
|
|
|
576
575
|
def test_arbitrary_assign_on_element(self):
|
|
577
|
-
sent = Sentinel(m_id=0, h=
|
|
576
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
578
577
|
gph = Graph(m_id=0, h=sent._h)
|
|
579
578
|
sent.register_code(jtc.arbitrary_assign_on_element)
|
|
580
579
|
test_walker = sent.run_architype("init")
|
|
@@ -586,7 +585,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
586
585
|
)
|
|
587
586
|
|
|
588
587
|
def test_try_else_stmts(self):
|
|
589
|
-
sent = Sentinel(m_id=0, h=
|
|
588
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
590
589
|
gph = Graph(m_id=0, h=sent._h)
|
|
591
590
|
sent.register_code(jtc.try_else_stmts)
|
|
592
591
|
test_walker = sent.run_architype("init")
|
|
@@ -611,7 +610,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
611
610
|
self.assertEqual(rep[3], 2)
|
|
612
611
|
|
|
613
612
|
def test_node_edge_same_name(self):
|
|
614
|
-
sent = Sentinel(m_id=0, h=
|
|
613
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
615
614
|
gph = Graph(m_id=0, h=sent._h)
|
|
616
615
|
sent.register_code(jtc.node_edge_same_name)
|
|
617
616
|
test_walker = sent.run_architype("init")
|
|
@@ -624,7 +623,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
624
623
|
)
|
|
625
624
|
|
|
626
625
|
def test_testcases(self):
|
|
627
|
-
sent = Sentinel(m_id=0, h=
|
|
626
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
628
627
|
sent.register_code(jtc.testcases)
|
|
629
628
|
sent.run_tests(silent=True)
|
|
630
629
|
self.assertEqual(len(sent.testcases), 4)
|
|
@@ -632,7 +631,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
632
631
|
self.assertEqual(i["passed"], True)
|
|
633
632
|
|
|
634
633
|
def test_testcase_asserts(self):
|
|
635
|
-
sent = Sentinel(m_id=0, h=
|
|
634
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
636
635
|
sent.register_code(jtc.testcase_asserts)
|
|
637
636
|
sent.run_tests(silent=True)
|
|
638
637
|
self.assertEqual(len(sent.testcases), 3)
|
|
@@ -641,7 +640,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
641
640
|
self.assertEqual(sent.testcases[2]["passed"], False)
|
|
642
641
|
|
|
643
642
|
def test_report_not_to_jacset(self):
|
|
644
|
-
sent = Sentinel(m_id=0, h=
|
|
643
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
645
644
|
gph = Graph(m_id=0, h=sent._h)
|
|
646
645
|
sent.register_code(jtc.report_not_to_jacset)
|
|
647
646
|
test_walker = sent.run_architype("init")
|
|
@@ -652,7 +651,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
652
651
|
self.assertIn("j_type", rep[0][0].keys())
|
|
653
652
|
|
|
654
653
|
def test_walker_spawn_unwrap_check(self):
|
|
655
|
-
sent = Sentinel(m_id=0, h=
|
|
654
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
656
655
|
gph = Graph(m_id=0, h=sent._h)
|
|
657
656
|
sent.register_code(jtc.walker_spawn_unwrap_check)
|
|
658
657
|
test_walker = sent.run_architype("init")
|
|
@@ -662,7 +661,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
662
661
|
self.assertTrue(rep[0].startswith("urn:uuid"))
|
|
663
662
|
|
|
664
663
|
def test_std_get_report(self):
|
|
665
|
-
sent = Sentinel(m_id=0, h=
|
|
664
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
666
665
|
gph = Graph(m_id=0, h=sent._h)
|
|
667
666
|
sent.register_code(jtc.std_get_report)
|
|
668
667
|
test_walker = sent.run_architype("init")
|
|
@@ -672,7 +671,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
672
671
|
self.assertEqual(rep, [3, 5, 6, 7, [3, 5, 6, 7], 8])
|
|
673
672
|
|
|
674
673
|
def test_func_with_array_index(self):
|
|
675
|
-
sent = Sentinel(m_id=0, h=
|
|
674
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
676
675
|
gph = Graph(m_id=0, h=sent._h)
|
|
677
676
|
sent.register_code(jtc.func_with_array_index)
|
|
678
677
|
test_walker = sent.run_architype("init")
|
|
@@ -682,7 +681,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
682
681
|
self.assertEqual(rep, [3, 5, 3])
|
|
683
682
|
|
|
684
683
|
def test_rt_error_test1(self):
|
|
685
|
-
sent = Sentinel(m_id=0, h=
|
|
684
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
686
685
|
gph = Graph(m_id=0, h=sent._h)
|
|
687
686
|
sent.register_code(jtc.rt_error_test1)
|
|
688
687
|
test_walker = sent.run_architype("init")
|
|
@@ -693,7 +692,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
693
692
|
self.assertIn(" col ", test_walker.runtime_errors[0])
|
|
694
693
|
|
|
695
694
|
def test_root_type_nodes(self):
|
|
696
|
-
sent = Sentinel(m_id=0, h=
|
|
695
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
697
696
|
gph = Graph(m_id=0, h=sent._h)
|
|
698
697
|
sent.register_code(jtc.root_type_nodes)
|
|
699
698
|
test_walker = sent.run_architype("init")
|
|
@@ -703,7 +702,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
703
702
|
self.assertEqual(report, ["root", "root"])
|
|
704
703
|
|
|
705
704
|
def test_invalid_key_error(self):
|
|
706
|
-
sent = Sentinel(m_id=0, h=
|
|
705
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
707
706
|
gph = Graph(m_id=0, h=sent._h)
|
|
708
707
|
sent.register_code(jtc.invalid_key_error)
|
|
709
708
|
test_walker = sent.run_architype("init")
|
|
@@ -713,7 +712,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
713
712
|
self.assertGreater(len(errors), 0)
|
|
714
713
|
|
|
715
714
|
def test_auto_cast(self):
|
|
716
|
-
sent = Sentinel(m_id=0, h=
|
|
715
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
717
716
|
gph = Graph(m_id=0, h=sent._h)
|
|
718
717
|
sent.register_code(jtc.auto_cast)
|
|
719
718
|
test_walker = sent.run_architype("init")
|
|
@@ -723,7 +722,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
723
722
|
self.assertEqual(report, [True, True])
|
|
724
723
|
|
|
725
724
|
def test_no_error_on_dict_key_assign(self):
|
|
726
|
-
sent = Sentinel(m_id=0, h=
|
|
725
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
727
726
|
gph = Graph(m_id=0, h=sent._h)
|
|
728
727
|
sent.register_code(jtc.no_error_on_dict_key_assign)
|
|
729
728
|
test_walker = sent.run_architype("init")
|
|
@@ -734,7 +733,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
734
733
|
self.assertEqual(len(test_walker.runtime_errors), 0)
|
|
735
734
|
|
|
736
735
|
def test_report_status(self):
|
|
737
|
-
sent = Sentinel(m_id=0, h=
|
|
736
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
738
737
|
gph = Graph(m_id=0, h=sent._h)
|
|
739
738
|
sent.register_code(jtc.report_status)
|
|
740
739
|
test_walker = sent.run_architype("init")
|
|
@@ -745,7 +744,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
745
744
|
self.assertEqual(test_walker.report_status, 302)
|
|
746
745
|
|
|
747
746
|
def test_graph_in_graph(self):
|
|
748
|
-
sent = Sentinel(m_id=0, h=
|
|
747
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
749
748
|
gph = Graph(m_id=0, h=sent._h)
|
|
750
749
|
sent.register_code(jtc.graph_in_graph)
|
|
751
750
|
test_walker = sent.run_architype("init")
|
|
@@ -755,7 +754,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
755
754
|
self.assertEqual(len(report), 3)
|
|
756
755
|
|
|
757
756
|
def test_min_max_on_list(self):
|
|
758
|
-
sent = Sentinel(m_id=0, h=
|
|
757
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
759
758
|
gph = Graph(m_id=0, h=sent._h)
|
|
760
759
|
sent.register_code(jtc.min_max_on_list)
|
|
761
760
|
test_walker = sent.run_architype("init")
|
|
@@ -765,7 +764,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
765
764
|
self.assertEqual(report, [531.1, 3, 5, 1])
|
|
766
765
|
|
|
767
766
|
def test_edge_bug(self):
|
|
768
|
-
sent = Sentinel(m_id=0, h=
|
|
767
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
769
768
|
gph = Graph(m_id=0, h=sent._h)
|
|
770
769
|
sent.register_code(jtc.edge_bug)
|
|
771
770
|
test_walker = sent.run_architype("init")
|
|
@@ -775,7 +774,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
775
774
|
self.assertEqual(len(report[0]), 4)
|
|
776
775
|
|
|
777
776
|
def test_rand_choice(self):
|
|
778
|
-
sent = Sentinel(m_id=0, h=
|
|
777
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
779
778
|
gph = Graph(m_id=0, h=sent._h)
|
|
780
779
|
sent.register_code(jtc.rand_choice)
|
|
781
780
|
test_walker = sent.run_architype("init")
|
|
@@ -785,7 +784,7 @@ class JacTests(TestCaseHelper, TestCase):
|
|
|
785
784
|
self.assertIn(report[1], report[0])
|
|
786
785
|
|
|
787
786
|
def test_struct_types(self):
|
|
788
|
-
sent = Sentinel(m_id=0, h=
|
|
787
|
+
sent = Sentinel(m_id=0, h=JsOrc.hook())
|
|
789
788
|
gph = Graph(m_id=0, h=sent._h)
|
|
790
789
|
sent.register_code(jtc.struct_types)
|
|
791
790
|
test_walker = sent.run_architype("init")
|