Fixed #18 : Parsing and evaluating Python
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user