Skip to content

Commit

Permalink
refactor: fixed formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Oct 12, 2024
1 parent d41361b commit 067be89
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions tests/e2e/web/api/v1/contexts/torrent/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,6 @@ mod for_authenticated_users {
use torrust_index::web::api;

use crate::common::client::Client;

use crate::e2e::environment::TestEnv;
use crate::e2e::web::api::v1::contexts::torrent::steps::upload_random_torrent_to_index;
use crate::e2e::web::api::v1::contexts::user::steps::new_logged_in_user;
Expand Down Expand Up @@ -1363,24 +1362,14 @@ mod and_admins {
mod authorization {
use torrust_index::web::api;

use crate::{
common::{
client::Client,
contexts::torrent::{
fixtures::random_torrent,
forms::{UpdateTorrentFrom, UploadTorrentMultipartForm},
responses::TorrentListResponse,
},
http::Query,
},
e2e::{
environment::TestEnv,
web::api::v1::contexts::{
torrent::steps::{upload_random_torrent_to_index, upload_test_torrent},
user::steps::{new_logged_in_admin, new_logged_in_user},
},
},
};
use crate::common::client::Client;
use crate::common::contexts::torrent::fixtures::random_torrent;
use crate::common::contexts::torrent::forms::{UpdateTorrentFrom, UploadTorrentMultipartForm};
use crate::common::contexts::torrent::responses::TorrentListResponse;
use crate::common::http::Query;
use crate::e2e::environment::TestEnv;
use crate::e2e::web::api::v1::contexts::torrent::steps::{upload_random_torrent_to_index, upload_test_torrent};
use crate::e2e::web::api::v1::contexts::user::steps::{new_logged_in_admin, new_logged_in_user};

#[tokio::test]
async fn it_should_allow_admin_users_to_upload_torrents() {
Expand Down

0 comments on commit 067be89

Please sign in to comment.