예제 #1
0
def test_aggregate():
    assetsdir = settings.Test.TEST_ASSETS_DIR
    testbuild = "testaggregate"
    result = output.aggregate(outputdir=assetsdir, buildname=testbuild)
    expected_dir = os.path.join(assetsdir, testbuild)
    assert result == expected_dir, "Did not create correct aggregate dir"
    assert os.path.exists(
        result), "Aggregate result path does not exist: %s!" % result
    shutil.rmtree(result)

    with pytest.raises(ValueError):
        output.aggregate(outputdir="invalid/path")
예제 #2
0
def test_aggregate():
    assetsdir = settings.Test.TEST_ASSETS_DIR
    testbuild = "testaggregate"
    result = output.aggregate(outputdir=assetsdir,
                              buildname=testbuild)
    expected_dir = os.path.join(assetsdir, testbuild)
    assert result == expected_dir, "Did not create correct aggregate dir"
    assert os.path.exists(
        result), "Aggregate result path does not exist: %s!" % result
    shutil.rmtree(result)

    with pytest.raises(ValueError):
        output.aggregate(outputdir="invalid/path")
예제 #3
0
def test_aggregate():
    result = output.aggregate()
    assert result, "output.aggregate() was not successful!"