File: test_octave_kernel.py

package info (click to toggle)
octave-kernel 0.36.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 572 kB
  • sloc: python: 444; makefile: 27
file content (31 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Example use of jupyter_kernel_test, with tests for IPython."""

import sys
import unittest
import jupyter_kernel_test as jkt


class OctaveKernelTests(jkt.KernelTests):
    kernel_name = "octave"

    language_name = "octave"

    code_hello_world = "disp('hello, world')"

    code_display_data = [
        {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'},
        {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'}
    ] if sys.platform == 'darwin' else []

    completion_samples = [
        {
            'text': 'acos',
            'matches': {'acos', 'acosd', 'acosh'},
        },
    ]

    code_page_something = "ones?"


if __name__ == '__main__':
    unittest.main()