jusi-shell 0.2.1__tar.gz → 0.2.2__tar.gz
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.
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/PKG-INFO +1 -1
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/pyproject.toml +1 -1
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/__init__.py +1 -1
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/tests/test_shell_plugin.py +10 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/.gitignore +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/LICENSE +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/README.md +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/application.py +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/catalog.py +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/completion.py +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/control.py +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/kernel.py +0 -0
- {jusi_shell-0.2.1 → jusi_shell-0.2.2}/src/jusi_shell/worker.py +0 -0
|
@@ -4,6 +4,7 @@ import json
|
|
|
4
4
|
import os
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
import pty
|
|
7
|
+
import re
|
|
7
8
|
import select
|
|
8
9
|
import subprocess
|
|
9
10
|
import sys
|
|
@@ -24,6 +25,15 @@ from jusi_shell.kernel import configure_jusi_runtime_v1, jusi_kernel_adapter_v1,
|
|
|
24
25
|
from jusi_shell.worker import ShellWorker, _followup_body
|
|
25
26
|
|
|
26
27
|
|
|
28
|
+
class VersionTest(unittest.TestCase):
|
|
29
|
+
def test_runtime_version_matches_project_metadata(self) -> None:
|
|
30
|
+
pyproject = Path(__file__).parents[1] / "pyproject.toml"
|
|
31
|
+
match = re.search(r'^version = "([^"]+)"$', pyproject.read_text(), re.MULTILINE)
|
|
32
|
+
|
|
33
|
+
self.assertIsNotNone(match)
|
|
34
|
+
self.assertEqual(match.group(1), __version__)
|
|
35
|
+
|
|
36
|
+
|
|
27
37
|
class FakeIPython:
|
|
28
38
|
def __init__(self) -> None:
|
|
29
39
|
self.magics_manager = type("MagicsManager", (), {"magics": {"cell": {}}})()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|