Exemplo n.º 1
0
def test_set_get():
    artifact = MockedConnectedArtifactFactory()

    assert artifact.get("A_KEY") is None

    artifact.set("A_KEY", True)

    assert artifact.get("A_KEY")

    artifact.set("A_KEY", 1234)

    assert artifact.get("A_KEY") == 1234
Exemplo n.º 2
0
def test_run():
    artifact = MockedConnectedArtifactFactory()
    future = artifact.start()
    future.result()
    artifact.join()
    assert artifact.get("test_passed")