You've already forked AstralRinth
forked from didirus/AstralRinth
Version updates (#3626)
* Update some Labrinth dependencies * Update some Labrinth dependencies * Update some Labrinth dependencies * Update zip in Labrinth * Update itertools in Labrinth * Update validator in labrinth * Update thiserror in labrinth * Update rust_decimal, redis, and deadpool-redis in labrinth * Update totp-rs and spdx in labrinth * Update maxminddb and tar in labrinth * Update sentry and sentry-actix in labrinth * Update image in labrinth * Update lettre in labrinth * Update derive-new and rust_iso3166 in labrinth * Update async-stripe and json-patch in labrinth * Update clap and iana-time-zone in labrinth * Update labrinth to Rust 2024 * Cargo fmt * Just do a full cargo update * Update daedelus to Rust 2024 * Update daedelus_client to Rust 2024 * Set the formatting edition to 2024 * Fix formatting IntelliJ messed up my formatting
This commit is contained in:
@@ -10,13 +10,13 @@ use actix_http::StatusCode;
|
||||
use actix_web::test;
|
||||
use ariadne::ids::base62_impl::parse_base62;
|
||||
use chrono::{Duration, Utc};
|
||||
use common::api_common::models::CommonItemType;
|
||||
use common::api_common::Api;
|
||||
use common::api_v3::request_data::get_public_project_creation_data;
|
||||
use common::api_common::models::CommonItemType;
|
||||
use common::api_v3::ApiV3;
|
||||
use common::api_v3::request_data::get_public_project_creation_data;
|
||||
use common::dummy_data::TestFile;
|
||||
use common::environment::{
|
||||
with_test_environment, with_test_environment_all, TestEnvironment,
|
||||
TestEnvironment, with_test_environment, with_test_environment_all,
|
||||
};
|
||||
use common::{database::*, scopes::ScopeTest};
|
||||
use labrinth::models::pats::Scopes;
|
||||
@@ -380,16 +380,20 @@ pub async fn project_version_reads_scopes() {
|
||||
.test(req_gen, read_project)
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(!failure
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.any(|x| x["status"] == "processing"));
|
||||
assert!(success
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.any(|x| x["status"] == "processing"));
|
||||
assert!(
|
||||
!failure
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.any(|x| x["status"] == "processing")
|
||||
);
|
||||
assert!(
|
||||
success
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.any(|x| x["status"] == "processing")
|
||||
);
|
||||
|
||||
// Project metadata reading
|
||||
let req_gen = |pat: Option<String>| async move {
|
||||
|
||||
Reference in New Issue
Block a user