Skip to content

Commit

Permalink
Cleanup ambiguous glob imports (#1692)
Browse files Browse the repository at this point in the history
* Cleanup ambiguous glob imports

* fix
  • Loading branch information
billy1624 committed Jun 6, 2023
1 parent 126f96b commit d099669
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions tests/common/features/schema.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pub use super::super::bakery_chain::*;

use super::*;
use crate::common::setup::{create_enum, create_table, create_table_without_asserts};
use sea_orm::{
Expand Down
3 changes: 1 addition & 2 deletions tests/connection_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ pub mod common;

pub use common::{bakery_chain::*, setup::*, TestContext};
use pretty_assertions::assert_eq;
pub use sea_orm::entity::*;
pub use sea_orm::*;
use sea_orm::prelude::*;

#[sea_orm_macros::test]
#[cfg(any(
Expand Down
2 changes: 1 addition & 1 deletion tests/loader_tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod common;

pub use common::{bakery_chain::*, setup::*, TestContext};
pub use sea_orm::{entity::*, query::*, DbConn, DbErr, FromQueryResult};
use sea_orm::{entity::*, query::*, DbConn, DbErr};

#[sea_orm_macros::test]
#[cfg(any(
Expand Down
4 changes: 2 additions & 2 deletions tests/relational_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pub use chrono::offset::Utc;
pub use common::{bakery_chain::*, setup::*, TestContext};
pub use rust_decimal::prelude::*;
pub use rust_decimal_macros::dec;
pub use sea_orm::{entity::*, query::*, DbErr, DerivePartialModel, FromQueryResult};
pub use sea_query::{Alias, Expr, Func, SimpleExpr};
use sea_orm::{entity::*, query::*, DbErr, DerivePartialModel, FromQueryResult};
use sea_query::{Expr, Func, SimpleExpr};
pub use uuid::Uuid;

// Run the test locally:
Expand Down
4 changes: 2 additions & 2 deletions tests/returning_tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod common;

pub use common::{bakery_chain::*, setup::*, TestContext};
pub use sea_orm::{entity::prelude::*, *};
pub use sea_query::Query;
use sea_orm::entity::prelude::*;
use sea_query::Query;

#[sea_orm_macros::test]
#[cfg(any(
Expand Down
2 changes: 1 addition & 1 deletion tests/self_join_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub mod common;

pub use common::{features::*, setup::*, TestContext};
use pretty_assertions::assert_eq;
use sea_orm::{entity::prelude::*, *};
use sea_orm::{entity::prelude::*, IntoActiveModel, QueryOrder};

#[sea_orm_macros::test]
#[cfg(any(
Expand Down
4 changes: 3 additions & 1 deletion tests/sequential_op_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ pub use chrono::offset::Utc;
pub use common::{bakery_chain::*, setup::*, TestContext};
pub use rust_decimal::prelude::*;
pub use rust_decimal_macros::dec;
pub use sea_orm::{entity::*, query::*, DatabaseConnection, FromQueryResult};
pub use uuid::Uuid;

#[cfg(any(feature = "sqlx-mysql", feature = "sqlx-postgres"))]
use sea_orm::{entity::*, query::*, DatabaseConnection, FromQueryResult};

// Run the test locally:
// DATABASE_URL="mysql://root:@localhost" cargo test --features sqlx-mysql,runtime-async-std --test sequential_op_tests
#[sea_orm_macros::test]
Expand Down
3 changes: 1 addition & 2 deletions tests/transaction_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ pub mod common;

pub use common::{bakery_chain::*, setup::*, TestContext};
use pretty_assertions::assert_eq;
pub use sea_orm::entity::*;
pub use sea_orm::*;
use sea_orm::{prelude::*, AccessMode, DatabaseTransaction, IsolationLevel, Set, TransactionTrait};

#[sea_orm_macros::test]
#[cfg(any(
Expand Down

0 comments on commit d099669

Please sign in to comment.