Signed-off-by: Edgar Luque <git@edgarluque.com>
This commit is contained in:
Edgar 2022-11-11 10:28:11 +01:00
parent cbb49f8e9d
commit 02bc81a8ef
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387
2 changed files with 4 additions and 9 deletions

View file

@ -1,11 +1,6 @@
use paypal_rs::{api::orders::*, data::orders::*}; use paypal_rs::{Client, PaypalEnv};
use paypal_rs::{data::common::Currency, Client, PaypalEnv}; use wiremock::matchers::{basic_auth, body_string, header, method, path};
use paypal_rs::{AccessToken, HeaderParams}; use wiremock::{Mock, MockServer, ResponseTemplate};
use wiremock::matchers::{basic_auth, body_string, header, method, path, BodyExactMatcher, HeaderExactMatcher};
use wiremock::{
matchers::{BasicAuthMatcher, BearerTokenMatcher},
Mock, MockServer, ResponseTemplate,
};
fn create_client(url: &str) -> Client { fn create_client(url: &str) -> Client {
Client::new( Client::new(

View file

@ -88,7 +88,7 @@ async fn test_create_order() -> color_eyre::Result<()> {
) )
.build()?; .build()?;
let create_order = CreateOrder::new(order); let _create_order = CreateOrder::new(order);
Ok(()) Ok(())
} }