From bcf05634ecb6b7422b3bd15ea3165f40ea78e683 Mon Sep 17 00:00:00 2001 From: FredApps Date: Thu, 19 Nov 2026 12:58:23 +0100 Subject: [PATCH] Consolidate pptx integration tests --- crates/pptx/tests/{ => it}/comments.rs | 2 +- crates/pptx/tests/it/main.rs | 10 ++++++++++ crates/pptx/tests/{ => it}/notes.rs | 2 +- crates/pptx/tests/{ => it}/read.rs | 0 crates/pptx/tests/{ => it}/timing.rs | 0 crates/pptx/tests/{ => it}/write.rs | 2 +- 6 files changed, 13 insertions(+), 3 deletions(-) rename crates/pptx/tests/{ => it}/comments.rs (99%) create mode 100644 crates/pptx/tests/it/main.rs rename crates/pptx/tests/{ => it}/notes.rs (99%) rename crates/pptx/tests/{ => it}/read.rs (100%) rename crates/pptx/tests/{ => it}/timing.rs (100%) rename crates/pptx/tests/{ => it}/write.rs (99%) diff --git a/crates/pptx/tests/comments.rs b/crates/pptx/tests/it/comments.rs similarity index 99% rename from crates/pptx/tests/comments.rs rename to crates/pptx/tests/it/comments.rs index 224ffec6e..66a44c510 100644 --- a/crates/pptx/tests/comments.rs +++ b/crates/pptx/tests/it/comments.rs @@ -1,7 +1,7 @@ //! Comment threads through PPTX: the modern part keeps replies and resolved state, the legacy //! part stays readable, and a package with both imports every thread once. -mod common; +use super::common; use std::sync::Arc; diff --git a/crates/pptx/tests/it/main.rs b/crates/pptx/tests/it/main.rs new file mode 100644 index 000000000..d128b81dc --- /dev/null +++ b/crates/pptx/tests/it/main.rs @@ -0,0 +1,10 @@ +//! The crate's integration tests, linked into one test binary. + +#[path = "../common/mod.rs"] +mod common; + +mod comments; +mod notes; +mod read; +mod timing; +mod write; diff --git a/crates/pptx/tests/notes.rs b/crates/pptx/tests/it/notes.rs similarity index 99% rename from crates/pptx/tests/notes.rs rename to crates/pptx/tests/it/notes.rs index 6d9500889..67600fba8 100644 --- a/crates/pptx/tests/notes.rs +++ b/crates/pptx/tests/it/notes.rs @@ -1,7 +1,7 @@ //! Speaker notes keep their run and paragraph formatting: a bold heading, indented points with //! custom bullets, plain lines. -mod common; +use super::common; use std::sync::Arc; diff --git a/crates/pptx/tests/read.rs b/crates/pptx/tests/it/read.rs similarity index 100% rename from crates/pptx/tests/read.rs rename to crates/pptx/tests/it/read.rs diff --git a/crates/pptx/tests/timing.rs b/crates/pptx/tests/it/timing.rs similarity index 100% rename from crates/pptx/tests/timing.rs rename to crates/pptx/tests/it/timing.rs diff --git a/crates/pptx/tests/write.rs b/crates/pptx/tests/it/write.rs similarity index 99% rename from crates/pptx/tests/write.rs rename to crates/pptx/tests/it/write.rs index 46f7513e7..46db7041d 100644 --- a/crates/pptx/tests/write.rs +++ b/crates/pptx/tests/it/write.rs @@ -1,6 +1,6 @@ //! The writer, read back with the reader. -mod common; +use super::common; use std::sync::Arc;