mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Disable FSRS in scheduler queue tests
Disable FSRS in review_queue_building and undo tests as they expect legacy SM-2 scheduler behavior for queue ordering and interval calculations.
This commit is contained in:
parent
a137d98038
commit
9d2ab84052
2 changed files with 4 additions and 0 deletions
|
|
@ -431,6 +431,8 @@ mod test {
|
|||
#[test]
|
||||
fn review_queue_building() -> Result<()> {
|
||||
let mut col = Collection::new();
|
||||
// Disable FSRS for this legacy scheduler test
|
||||
col.set_config_bool(BoolKey::Fsrs, false, false)?;
|
||||
|
||||
let mut deck = col.get_or_create_normal_deck("Default").unwrap();
|
||||
let nt = col.get_notetype_by_name("Basic")?.unwrap();
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@ mod test {
|
|||
fn undo() -> Result<()> {
|
||||
// add a note
|
||||
let mut col = Collection::new();
|
||||
// Disable FSRS for this legacy scheduler test
|
||||
col.set_config_bool(BoolKey::Fsrs, false, false)?;
|
||||
let nid = add_note(&mut col, true)?;
|
||||
|
||||
// turn burying and leech suspension on
|
||||
|
|
|
|||
Loading…
Reference in a new issue