mirror of
https://codeberg.org/demostf/api-test.git
synced 2026-06-03 09:34:10 +02:00
use smaller demos for tests
This commit is contained in:
parent
cec7626cf2
commit
1a22c5e740
6 changed files with 4 additions and 4 deletions
BIN
data/coalplant.dem
Normal file
BIN
data/coalplant.dem
Normal file
Binary file not shown.
BIN
data/granary.dem
Normal file
BIN
data/granary.dem
Normal file
Binary file not shown.
BIN
data/gully.dem
BIN
data/gully.dem
Binary file not shown.
BIN
data/process.dem
Normal file
BIN
data/process.dem
Normal file
Binary file not shown.
BIN
data/warmfrost.dem
Normal file
BIN
data/warmfrost.dem
Normal file
Binary file not shown.
|
|
@ -21,7 +21,7 @@ macro_rules! assert_object_eq {
|
|||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let harness = Harness::new(&dotenv::var("BASE_URL")?, &dotenv::var("DB_URL")?).await?;
|
||||
let gully_data = include_bytes!("../data/gully.dem");
|
||||
let gully_data = include_bytes!("../data/granary.dem");
|
||||
|
||||
Test::run(
|
||||
"Upload demo, then retrieve info",
|
||||
|
|
@ -55,9 +55,9 @@ async fn main() -> Result<()> {
|
|||
assert_object_eq!(demo => {
|
||||
id == 1,
|
||||
name == "test.dem",
|
||||
map == "cp_gullywash_final1",
|
||||
red_score == 5,
|
||||
blue_score == 3,
|
||||
map == "cp_granary_pro_rc8",
|
||||
red_score == 0,
|
||||
blue_score == 1,
|
||||
player_count == 12,
|
||||
});
|
||||
verify_demo(&demo, &header, state)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue