Skip to content

Commit df8b98f

Browse files
committed
Add a test for python port with mock.
1 parent c1661f4 commit df8b98f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/ports/py_port/test/run.py.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ import unittest
1111

1212
class py_port_test(unittest.TestCase):
1313

14+
# MetaCall (Mock)
15+
def test_mock(self):
16+
self.assertEqual(metacall.metacall_load_from_file('mock', ['test.mock']), 0);
17+
18+
self.assertEqual(metacall.metacall('three_str', 'a', 'b', 'c'), 'Hello World');
19+
1420
# MetaCall (Python from memory)
1521
def test_python_memory(self):
1622
script = '#!/usr/bin/env python3\ndef inline_multiply_mem(left, right):\n\treturn left * right\n';

0 commit comments

Comments
 (0)