mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
Weight types is failing to serialize :S
This commit is contained in:
1 parent
ccf1adae61
commit
8b2765ba65
3 files changed
+13
-5
No files matched your search
@@ -5,6 +5,7 @@ use strum::EnumCount;
|
||||
#[cfg(test)]
|
||||
use strum::EnumIter;
|
||||
|
||||
|
||||
#[cfg_attr(test, derive(EnumIter, EnumCount))]
|
||||
#[derive(Clone, Copy, Eq, PartialEq, Hash, Ord, PartialOrd, sqlx::Type, Deserialize, Serialize,Debug)]
|
||||
pub enum WeightsType {
|
||||
|
||||
@@ -4,10 +4,10 @@ use sqlx::{ MySqlPool, MySql };
|
||||
use sqlx::pool::PoolConnection;
|
||||
use anyhow::anyhow;
|
||||
use log::{ error };
|
||||
use enums::by_table::model_weights::{
|
||||
weights_types::WeightsType,
|
||||
weights_category::WeightsCategory,
|
||||
};
|
||||
|
||||
use enums::by_table::model_weights::weights_types::WeightsType;
|
||||
use enums::by_table::model_weights::weights_category::WeightsCategory;
|
||||
|
||||
use enums::common::visibility::Visibility;
|
||||
use tokens::tokens::{ users::UserToken, model_weights::ModelWeightToken };
|
||||
use chrono::{ DateTime, Utc };
|
||||
|
||||
@@ -56,7 +56,6 @@ mod tests {
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_create_weights() -> AnyhowResult<()> {
|
||||
let db_connection_string = DEFAULT_MYSQL_CONNECTION_STRING;
|
||||
|
||||
let mut rng = rand::thread_rng();
|
||||
let random_number: u32 = rng.gen();
|
||||
@@ -128,4 +127,12 @@ mod tests {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_delete_weights() -> AnyhowResult<()> {
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user