Пример #1
0
def test_parent_doc_hash():
    with tempdir():
        params = RunParams()
        args = [["hello.txt|newdoc", { "contents" : "hello" }]]
        runner = Runner(params, args)
        runner.run()

        doc = runner.docs[-1]

        runner.setup_db()
        rows = runner.get_child_hashes_in_previous_batch(doc.final_artifact.hashstring)
        assert len(rows) == 3
Пример #2
0
def test_parent_doc_hash():
    with tempdir():
        params = RunParams()
        args = [["hello.txt|newdoc", {"contents": "hello"}]]
        runner = Runner(params, args)
        runner.run()

        doc = runner.docs[-1]

        runner.setup_db()
        rows = runner.get_child_hashes_in_previous_batch(
            doc.final_artifact.hashstring)
        assert len(rows) == 3