def test_sop(bulk_inserter): assert bulk_inserter.sop == { DAVE_SMITH: TrunkPayload({PERSON: [TYPE], "Dave Smith": [NAME], ERIC_MILLER: [KNOWS]}, 3), ERIC_MILLER: TrunkPayload( {"Dr": [TITLE], "Eric Miller": [NAME], DAVE_SMITH: [KNOWS], ERIC_MILLER_MBOX: [MBOX], PERSON: [TYPE]}, 5 ), }
def test_spo(bulk_inserter): assert bulk_inserter.spo == { DAVE_SMITH: TrunkPayload({TYPE: [PERSON], NAME: ["Dave Smith"], KNOWS: [ERIC_MILLER]}, 3), ERIC_MILLER: TrunkPayload( {TYPE: [PERSON], NAME: ["Eric Miller"], KNOWS: [DAVE_SMITH], MBOX: [ERIC_MILLER_MBOX], TITLE: ["Dr"]}, 5 ), }
def test_pso(bulk_inserter): assert bulk_inserter.pso == { KNOWS: TrunkPayload({ERIC_MILLER: [DAVE_SMITH], DAVE_SMITH: [ERIC_MILLER]}, 2), MBOX: TrunkPayload({ERIC_MILLER: [ERIC_MILLER_MBOX]}, 1), NAME: TrunkPayload({DAVE_SMITH: ["Dave Smith"], ERIC_MILLER: ["Eric Miller"]}, 2), TITLE: TrunkPayload({ERIC_MILLER: ["Dr"]}, 1), TYPE: TrunkPayload({DAVE_SMITH: [PERSON], ERIC_MILLER: [PERSON]}, 2), }
def test_pos(bulk_inserter): assert bulk_inserter.pos == { KNOWS: TrunkPayload({ERIC_MILLER: [DAVE_SMITH], DAVE_SMITH: [ERIC_MILLER]}, 2), MBOX: TrunkPayload({ERIC_MILLER_MBOX: [ERIC_MILLER]}, 1), NAME: TrunkPayload({"Dave Smith": [DAVE_SMITH], "Eric Miller": [ERIC_MILLER]}, 2), TITLE: TrunkPayload({"Dr": [ERIC_MILLER]}, 1), TYPE: TrunkPayload({PERSON: [DAVE_SMITH, ERIC_MILLER]}, 2), }
def test_ops_versioned_store(versioned_store): assert versioned_store.ops == { "Dave Smith": TrunkPayload({NAME: { DAVE_SMITH: _make_status(1) }}, 1), "Dr": TrunkPayload({TITLE: { ERIC_MILLER: _make_status(5) }}, 1), "Eric Miller": TrunkPayload({NAME: { ERIC_MILLER: _make_status(3) }}, 1), DAVE_SMITH: TrunkPayload({KNOWS: { ERIC_MILLER: _make_status(7) }}, 1), ERIC_MILLER: TrunkPayload({KNOWS: { DAVE_SMITH: _make_status(6) }}, 1), ERIC_MILLER_MBOX: TrunkPayload({MBOX: { ERIC_MILLER: _make_status(4) }}, 1), PERSON: TrunkPayload( { TYPE: { DAVE_SMITH: _make_status(0), ERIC_MILLER: _make_status(2) } }, 2), }
def test_pso_versioned_store(versioned_store): assert versioned_store.pso == { KNOWS: TrunkPayload( { ERIC_MILLER: { DAVE_SMITH: _make_status(7) }, DAVE_SMITH: { ERIC_MILLER: _make_status(6) } }, 2), MBOX: TrunkPayload({ERIC_MILLER: { ERIC_MILLER_MBOX: _make_status(4) }}, 1), NAME: TrunkPayload( { DAVE_SMITH: { "Dave Smith": _make_status(1) }, ERIC_MILLER: { "Eric Miller": _make_status(3) } }, 2), TITLE: TrunkPayload({ERIC_MILLER: { "Dr": _make_status(5) }}, 1), TYPE: TrunkPayload( { DAVE_SMITH: { PERSON: _make_status(0) }, ERIC_MILLER: { PERSON: _make_status(2) } }, 2), }
def test_ops(bulk_inserter): assert bulk_inserter.ops == { "Dave Smith": TrunkPayload({NAME: [DAVE_SMITH]}, 1), "Dr": TrunkPayload({TITLE: [ERIC_MILLER]}, 1), "Eric Miller": TrunkPayload({NAME: [ERIC_MILLER]}, 1), DAVE_SMITH: TrunkPayload({KNOWS: [ERIC_MILLER]}, 1), ERIC_MILLER: TrunkPayload({KNOWS: [DAVE_SMITH]}, 1), ERIC_MILLER_MBOX: TrunkPayload({MBOX: [ERIC_MILLER]}, 1), PERSON: TrunkPayload({TYPE: [DAVE_SMITH, ERIC_MILLER]}, 2), }
def test_osp(bulk_inserter): assert bulk_inserter.osp == { "Dave Smith": TrunkPayload({DAVE_SMITH: [NAME]}, 1), "Dr": TrunkPayload({ERIC_MILLER: [TITLE]}, 1), "Eric Miller": TrunkPayload({ERIC_MILLER: [NAME]}, 1), DAVE_SMITH: TrunkPayload({ERIC_MILLER: [KNOWS]}, 1), ERIC_MILLER: TrunkPayload({DAVE_SMITH: [KNOWS]}, 1), ERIC_MILLER_MBOX: TrunkPayload({ERIC_MILLER: [MBOX]}, 1), PERSON: TrunkPayload({DAVE_SMITH: [TYPE], ERIC_MILLER: [TYPE]}, 2), }
def test_sop_versioned_store(versioned_store): assert versioned_store.sop == { DAVE_SMITH: TrunkPayload( { PERSON: { TYPE: _make_status(0) }, "Dave Smith": { NAME: _make_status(1) }, ERIC_MILLER: { KNOWS: _make_status(6) }, }, 3, ), ERIC_MILLER: TrunkPayload( { "Dr": { TITLE: _make_status(5) }, "Eric Miller": { NAME: _make_status(3) }, DAVE_SMITH: { KNOWS: _make_status(7) }, ERIC_MILLER_MBOX: { MBOX: _make_status(4) }, PERSON: { TYPE: _make_status(2) }, }, 5, ), }
def test_spo_versioned_store(versioned_store): assert versioned_store.spo == { DAVE_SMITH: TrunkPayload( { TYPE: { PERSON: _make_status(0) }, NAME: { "Dave Smith": _make_status(1) }, KNOWS: { ERIC_MILLER: _make_status(6) }, }, 3, ), ERIC_MILLER: TrunkPayload( { TYPE: { PERSON: _make_status(2) }, NAME: { "Eric Miller": _make_status(3) }, KNOWS: { DAVE_SMITH: _make_status(7) }, MBOX: { ERIC_MILLER_MBOX: _make_status(4) }, TITLE: { "Dr": _make_status(5) }, }, 5, ), }