Skip to content

Commit

Permalink
Cleanup imports and mark as tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Samasaur1 committed Apr 23, 2023
1 parent 18928dd commit d9b89f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
19 changes: 5 additions & 14 deletions src/tests/filter_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,24 @@
extern crate pretty_env_logger;

use std::fs;
use std::io::Bytes;
use std::ops::Deref;
use std::path::{Path, PathBuf};
use std::process::id;
use std::str::Utf8Error;

use chrono::{DateTime, Utc};
use futures::task::Spawn;
use serde::{Deserialize, Serialize};
use serde::de::DeserializeOwned;
use serde_json;
use uuid::Uuid;
use warp::{cors, Filter, get};
use warp::body::json;
use warp::path::Exact;
use warp::test;
use serde_json;
use serde_json::Value::String;

use crate::{files, routes, api, handlers};
use crate::{api, handlers, routes};
use crate::files::repos;
use crate::handlers::{FileAndHashAndBranchName, FileIDAndGitHash, IdOnly};
use crate::handlers::FileIDAndGitHash;
use crate::routes::get_file;


#[allow(non_snake_case)]
fn FILES_DIR() -> PathBuf {
Path::new(".").join("files")
}
#[allow(non_snake_case)]
fn PREVIEWS_DIR() -> PathBuf {
Path::new(".").join("previews")
}
Expand Down
1 change: 1 addition & 0 deletions src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#[cfg(test)]
mod filter_tests;

0 comments on commit d9b89f0

Please sign in to comment.