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")
def test_aggregate(): result = output.aggregate() assert result, "output.aggregate() was not successful!"