Skip to content

Commit

Permalink
add tests for account
Browse files Browse the repository at this point in the history
  • Loading branch information
greaka committed Jul 22, 2022
1 parent c5c0c94 commit 2df841b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ default-features = false
features = ["http1", "native-tokio", "logging", "tls12"]

[dependencies.gw2lib-model]
version = "1.0.0"
#version = "1.0.0"
path = "../model"

[features]
blocking = []
12 changes: 12 additions & 0 deletions http/tests/account.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#![cfg(feature = "blocking")]

use gw2lib::Requester;
use gw2lib_model::authenticated::account::Account;

pub mod setup;

#[test]
fn eff_testing() {
let client = setup::setup();
let _: Account = client.get().unwrap();
}
2 changes: 1 addition & 1 deletion model/src/authenticated/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Endpoint for Account {
const AUTHENTICATED: bool = true;
const LOCALE: bool = false;
const URL: &'static str = "v2/account";
const VERSION: &'static str = "2021-01-11T00:00:00.000Z";
const VERSION: &'static str = "2022-07-22T00:00:00.000Z";
}

impl FixedEndpoint for Account {}

0 comments on commit 2df841b

Please sign in to comment.