Skip to content

Commit b378cd6

Browse files
committed
Fix remaining import errors: add ABC and abstractmethod imports to plugins.py, add unittest import to test_core.py
1 parent 90e425b commit b378cd6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

shellrosetta/plugins.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33

44
import os
55
import sys
6+
import importlib.util
7+
from pathlib import Path
8+
from abc import ABC, abstractmethod
69
from typing import Dict, List, Optional, Any, Callable
710
import json
11+
812
class CommandPlugin(ABC):
913
"""Base class for command translation plugins"""
1014

tests/test_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# tests/test_core.py
22

33

4+
import unittest
45
from shellrosetta.core import lnx2ps, ps2lnx
6+
57
class TestShellRosettaCore(unittest.TestCase):
68
def test_ls_translation(self):
79
self.assertIn("Get-ChildItem", lnx2ps("ls"))

0 commit comments

Comments
 (0)