コード例 #1
0
ファイル: core.py プロジェクト: wiinnie-the-pooh/dtocean-app
    def __init__(self):

        QtCore.QObject.__init__(self)
        Core.__init__(self)
        self._input_parent = None

        return
コード例 #2
0
ファイル: test_core.py プロジェクト: H0R5E/dtocean-core
def test_is_valid_variable():
    
    core = Core()
    test_var = "device.selected_name"
    
    result = core.is_valid_variable(test_var)
    
    assert result
コード例 #3
0
ファイル: test_menu.py プロジェクト: H0R5E/dtocean-core
def test_ProjectMenu_new_project():

    project_title = "Test"

    new_core = Core()
    new_project = new_core.new_project(project_title)

    assert new_project.title == project_title
コード例 #4
0
def core():
    '''Share a Core object'''

    new_core = Core()
    socket = new_core.control._sequencer.get_socket("ModuleInterface")
    socket.add_interface(MockModule)

    return new_core
コード例 #5
0
def test_DateTimeDict_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "DateTimeDict" in all_objs.keys()
コード例 #6
0
def test_Strata_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "Strata" in all_objs.keys()
コード例 #7
0
def core():
    '''Share a Core object'''

    new_core = Core()

    return new_core
コード例 #8
0
def test_Numpy3D_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "Numpy3D" in all_objs.keys()
コード例 #9
0
def test_HistogramColumn_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "HistogramColumn" in all_objs.keys()
コード例 #10
0
def test_LineTable_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "LineTable" in all_objs.keys()
コード例 #11
0
def test_PointList_available():
    
    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "PointList" in all_objs.keys()
コード例 #12
0
def test_XGrid2D_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "XGrid2D" in all_objs.keys()
コード例 #13
0
def test_TableDataColumn_available():
    
    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "TableDataColumn" in all_objs.keys()
コード例 #14
0
def test_PolygonListColumn_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "PolygonListColumn" in all_objs.keys()
コード例 #15
0
def test_CartesianListDict_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "CartesianListDict" in all_objs.keys()
コード例 #16
0
def test_TimeSeries_available():
    
    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "TimeSeries" in all_objs.keys()
コード例 #17
0
ファイル: test_core.py プロジェクト: H0R5E/dtocean-core
def test_init_core():
    
    new_core = Core()
    
    assert isinstance(new_core, Core)
コード例 #18
0
def test_SimplePie_available():
    
    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "SimplePie" in all_objs.keys()
コード例 #19
0
def test_NumpyLineDictArrayColumn_available():

    new_core = Core()
    all_objs = new_core.control._store._structures

    assert "NumpyLineDictArrayColumn" in all_objs.keys()