Fixed #18 : Parsing and evaluating Python

This commit is contained in:
2023-05-14 12:12:29 +02:00
parent e41094f908
commit 09a0246420
46 changed files with 2084 additions and 165 deletions
+18
View File
@@ -8,6 +8,24 @@ from core.Sheerka import Sheerka
from sdp.sheerkaDataProvider import SheerkaDataProvider
class DummyObj:
def __init__(self, a: str = "hello", b: str = "world"):
self.a = a
self.b = b
def __eq__(self, other):
if not isinstance(other, DummyObj):
return False
return self.a == other.a and self.b == other.b
def __hash__(self):
return hash((self.a, self.b))
def __repr__(self):
return f"Dummy('{self.a}', '{self.b}')"
class BaseTest:
@pytest.fixture()
def sdp(self) -> SheerkaDataProvider: