Skip to content

Commit

Permalink
Fix breaking changes of new anki version
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickfunk committed Aug 1, 2021
1 parent d14fee3 commit 45b56ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ mod tests {

pub fn anki_collection<'a>(py: &'a Python, col_fname: &str) -> &'a PyAny {
let code = r#"
import anki
import anki.collection
import tempfile
def setup(fname):
import uuid
colf_name = f"{fname}.anki2"
return anki.Collection(colf_name)
return anki.collection.Collection(colf_name)
"#;
let setup = PyModule::from_code(*py, code, "test_setup", "test_setup.py")
.unwrap()
Expand Down

0 comments on commit 45b56ee

Please sign in to comment.