-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
use async_graphql::{dynamic::*, Response}; | ||
use sea_orm::Database; | ||
|
||
async fn main() { | ||
test_simple_insert_one().await; | ||
test_complex_insert_one().await; | ||
test_create_batch_mutation().await; | ||
test_update_mutation().await; | ||
test_delete_mutation().await; | ||
} | ||
|
||
pub async fn get_schema() -> Schema { | ||
let database = Database::connect("mysql://sea:[email protected]/sakila") | ||
.await | ||
|
@@ -19,7 +27,6 @@ pub fn assert_eq(a: Response, b: &str) { | |
) | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_simple_insert_one() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -102,7 +109,6 @@ async fn test_simple_insert_one() { | |
); | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_complex_insert_one() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -209,7 +215,6 @@ async fn test_complex_insert_one() { | |
); | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_create_batch_mutation() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -354,7 +359,6 @@ async fn test_create_batch_mutation() { | |
) | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_update_mutation() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -533,7 +537,6 @@ async fn test_update_mutation() { | |
); | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_delete_mutation() { | ||
let schema = get_schema().await; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
use async_graphql::{dynamic::*, Response}; | ||
use sea_orm::Database; | ||
|
||
#[tokio::test] | ||
async fn main() { | ||
test_simple_insert_one().await; | ||
test_complex_insert_one().await; | ||
test_create_batch_mutation().await; | ||
test_update_mutation().await; | ||
test_delete_mutation().await; | ||
} | ||
|
||
pub async fn get_schema() -> Schema { | ||
let database = Database::connect("postgres://sea:[email protected]/sakila") | ||
.await | ||
|
@@ -19,7 +28,6 @@ pub fn assert_eq(a: Response, b: &str) { | |
) | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_simple_insert_one() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -102,7 +110,6 @@ async fn test_simple_insert_one() { | |
); | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_complex_insert_one() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -209,7 +216,6 @@ async fn test_complex_insert_one() { | |
); | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_create_batch_mutation() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -343,7 +349,6 @@ async fn test_create_batch_mutation() { | |
) | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_update_mutation() { | ||
let schema = get_schema().await; | ||
|
||
|
@@ -490,7 +495,6 @@ async fn test_update_mutation() { | |
); | ||
} | ||
|
||
#[tokio::test] | ||
async fn test_delete_mutation() { | ||
let schema = get_schema().await; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters