|
@@ -31,7 +31,7 @@ fn open_test() {
|
|
|
|
|
|
#[test]
|
|
|
fn check_for_inserted() {
|
|
|
- let db = common::open_test_db::<PeopleDB>("derive_check_for_inserted");
|
|
|
+ let db: PeopleDB = common::open_test_db!();
|
|
|
let name_string = "name_here".to_string();
|
|
|
// check that it isn't in the database before we insert it
|
|
|
assert!(db.people.keyed(&name_string).get().ok().flatten().is_none());
|
|
@@ -49,7 +49,7 @@ fn check_for_inserted() {
|
|
|
|
|
|
#[test]
|
|
|
fn check_relation_query_construction() {
|
|
|
- let db = common::open_test_db::<PeopleDB>("derive_check_relation_query_construction");
|
|
|
+ let db: PeopleDB = common::open_test_db!();
|
|
|
|
|
|
let name_string = "name_here".to_string();
|
|
|
db.people
|
|
@@ -75,7 +75,7 @@ fn check_relation_query_construction() {
|
|
|
|
|
|
#[test]
|
|
|
fn check_relation_insertion() {
|
|
|
- let db = common::open_test_db::<PeopleDB>("derive_check_relation_insertion");
|
|
|
+ let db: PeopleDB = common::open_test_db!();
|
|
|
|
|
|
let name_string = "name_here".to_string();
|
|
|
db.people
|
|
@@ -101,7 +101,7 @@ fn check_relation_insertion() {
|
|
|
|
|
|
#[test]
|
|
|
fn delete_test() {
|
|
|
- let db = common::open_test_db::<PeopleDB>("derive_delete_test");
|
|
|
+ let db: PeopleDB = common::open_test_db!();
|
|
|
|
|
|
let id = db
|
|
|
.people
|
|
@@ -124,7 +124,7 @@ fn delete_test() {
|
|
|
|
|
|
#[test]
|
|
|
fn remove_test() {
|
|
|
- let db = common::open_test_db::<PeopleDB>("derive_remove_test");
|
|
|
+ let db: PeopleDB = common::open_test_db!();
|
|
|
|
|
|
let id = db
|
|
|
.people
|
|
@@ -151,7 +151,7 @@ fn remove_test() {
|
|
|
|
|
|
#[test]
|
|
|
fn update_test() {
|
|
|
- let db = common::open_test_db::<PeopleDB>("derive_update_test");
|
|
|
+ let db: PeopleDB = common::open_test_db!();
|
|
|
|
|
|
let mut stored = db
|
|
|
.people
|