Fixed #9 : I can parse 'def concept'
This commit is contained in:
@@ -4,7 +4,10 @@ from os import path
|
||||
|
||||
import pytest
|
||||
|
||||
from core.BuiltinConcepts import BuiltinConcepts
|
||||
from core.Sheerka import Sheerka
|
||||
from helpers import _rv
|
||||
from parsers.ParserInput import ParserInput
|
||||
from sdp.sheerkaDataProvider import SheerkaDataProvider
|
||||
|
||||
|
||||
@@ -32,6 +35,14 @@ class BaseTest:
|
||||
return SheerkaDataProvider("mem://", name="test")
|
||||
|
||||
|
||||
class BaseParserTest(BaseTest):
|
||||
@staticmethod
|
||||
def get_parser_input(context, command):
|
||||
pi = ParserInput(command)
|
||||
pi.init()
|
||||
return _rv(context.sheerka.newn(BuiltinConcepts.PARSER_INPUT, pi=pi))
|
||||
|
||||
|
||||
class UsingFileBasedSheerka(BaseTest):
|
||||
TESTS_ROOT_DIRECTORY = path.abspath("../build/tests")
|
||||
SHEERKA_ROOT_DIR = os.path.join(TESTS_ROOT_DIRECTORY, ".sheerka")
|
||||
|
||||
Reference in New Issue
Block a user