Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test compilation and some running
There are failing tests that I don't understand
  • Loading branch information
michalfita committed Nov 30, 2025
commit 52b3ada976d6f212bdde2c390c5a868c7aa1a654
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ mod tests {
json!({
"version": mdbook_core::MDBOOK_VERSION,
"root": "tests/long_book_example",
"book": {"sections": [], "__non_exhaustive": null},
"book": {"items": [], "__non_exhaustive": null},
"config": {
"book": {"authors": [], "language": "en", "multilingual": false,
"book": {"authors": [], "language": "en", "text-direction": "ltr",
"src": source, "title": "DummyBook"},
"output": {"epub": {"optional": true}}},
"destination": destination
Expand Down
2 changes: 1 addition & 1 deletion src/filters/footnote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<'a> FootnoteFilter<'a> {
_ => unreachable!(),
});
}
pub(crate) fn get_events(&self) -> impl Iterator<Item = Event> {
pub(crate) fn get_events(&self) -> impl Iterator<Item = Event<'_>> {
self.footnotes
.clone()
.into_iter()
Expand Down
4 changes: 2 additions & 2 deletions tests/common/epub.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::common::init_logging::init_logging;
use epub::doc::EpubDoc;
use log::{debug, error};
use mdbook::MDBook;
use mdbook::renderer::RenderContext;
use mdbook_driver::MDBook;
use mdbook_renderer::RenderContext;
use mdbook_epub::errors::Error;
use std::fs::File;
use std::io::BufReader;
Expand Down
4 changes: 2 additions & 2 deletions tests/footnote_epub3_example/book.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[book]
title = "FootnoteEpub3Example"
authors = []
multilingual = false

src = "src"
lang = "en"
language = "en"

[output.epub]
epub-version = 3
Expand Down
4 changes: 2 additions & 2 deletions tests/long_book_example/book.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[book]
title = "LongBookExample"
authors = []
multilingual = false

src = "src"
lang = "en"
language = "en"

[output.epub]
curly-quotes = true
Expand Down
2 changes: 1 addition & 1 deletion tests/page_break_example/book.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[book]
title = "PageBreakExample"
authors = []
multilingual = false

src = "src"
lang = "en"

Expand Down
2 changes: 1 addition & 1 deletion tests/remote_image_fetch/book.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[book]
title = "RemoteImageFetchExample"
authors = []
multilingual = false

src = "src"
lang = "en"

Expand Down
2 changes: 1 addition & 1 deletion tests/straight_quotes_into_curly_quotes/book.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[book]
title = "CurlyQuotesBookExample"
authors = []
multilingual = false

src = "src"
lang = "en"

Expand Down