def test_testName(self): color.blue("test here baby") targeFilename = os.path.join(currentFolder, 'filesPoligon/debug/target.iced') sourceFilename = os.path.join(currentFolder, 'filesPoligon/debug/source.iced') result = relativeRequireIced_model.do(targeFilename, sourceFilename) expected = ("target = require './target.iced'", 'await target db, defer cityListWithLongLat') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") source = os.path.join(currentFolder, 'filesPoligon/source.iced') target = os.path.join(currentFolder, 'filesPoligon/targetSync.iced') result = relativeRequireIced_model.do(target, source) expected = ("targetSync = require './targetSync.iced'", 'actual = targetSync arg1, arg2') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") source = os.path.join(currentFolder, 'filesPoligon/source.iced') target = os.path.join(currentFolder, 'filesPoligon/targetNoArgs2return.iced') result = relativeRequireIced_model.do(target, source) expected = ("targetNoArgs2return = require './targetNoArgs2return.iced'", '[driver, webdriver] = targetNoArgs2return()') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") target = "/Users/maks/Library/Application Support/Sublime Text 3/Packages/relative/test/filesPoligon/autocbOnePoligin/target.iced" source = "/Users/maks/Library/Application Support/Sublime Text 3/Packages/relative/test/filesPoligon/autocbOnePoligin/source.iced" result = relativeRequireIced_model.do(target, source) expected = ("target = require './target.iced'", 'await target db, countryId, defer cityList') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") source = os.path.join(currentFolder, 'filesPoligon/source.iced') target = os.path.join(currentFolder, 'filesPoligon/poligon.iced') result = relativeRequireIced_model.do(target, source) expected = ("poligon = require './poligon.iced'", 'await poligon countryId, regionId, defer result') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") source = os.path.join(currentFolder, 'filesPoligon/source.iced') target = os.path.join(currentFolder, 'filesPoligon/targetEmptyParams.iced') result = relativeRequireIced_model.do(target, source) expected = ("targetEmptyParams = require './targetEmptyParams.iced'", 'await targetEmptyParams defer result') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") source = os.path.join(currentFolder, 'filesPoligon/source.iced') target = os.path.join(currentFolder, 'filesPoligon/withEndingSpacesTarget.iced') result = relativeRequireIced_model.do(target, source) expected = ("withEndingSpacesTarget = require './withEndingSpacesTarget.iced'", 'await withEndingSpacesTarget defer result\n[err, allRubricIdList] = result\nth.err err') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") targeFilename = '/Users/maks/Library/Application Support/Sublime Text 3/Packages/relative/test/cb/filePoligon/target.iced' sourceFilename = '/Users/maks/Library/Application Support/Sublime Text 3/Packages/relative/test/cb/filePoligon/source/source.iced' result = relativeRequireIced_model.do(targeFilename, sourceFilename) expected = ("target = require '../target.iced'", 'await target db, text, orgId, defer err, comments') assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") # /Users/maks/Dropbox/nodeApps/monvgo/model/mongo/mdb_vgo_cb.iced source = '/Users/maks/Library/Application Support/Sublime Text 3/Packages/relative/test/cb_withoutArgs/poligon/source.iced' target = '/Users/maks/Library/Application Support/Sublime Text 3/Packages/relative/test/cb_withoutArgs/poligon/target.iced' result = relativeRequireIced_model.do(target, source) expected = ("target = require './target.iced'", 'await target defer err, db') assertMy.equals(result, expected)