Skip to content

Commit

Permalink
Removed test graphql client
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsanchezq committed Feb 23, 2021
1 parent 97a7516 commit c1bce3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 0 additions & 2 deletions vit-servicing-station-tests/src/common/clients/mod.rs
@@ -1,5 +1,3 @@
pub mod graphql;
pub mod rest;

pub use graphql::GraphqlClient;
pub use rest::{RestClient, RestError};
12 changes: 1 addition & 11 deletions vit-servicing-station-tests/src/common/server.rs
@@ -1,4 +1,4 @@
use super::clients::{GraphqlClient, RestClient};
use super::clients::RestClient;
use super::logger::Logger;
use std::path::PathBuf;
use std::process::Child;
Expand Down Expand Up @@ -33,16 +33,6 @@ impl Server {
rest_client
}

pub fn graphql_client(&self) -> GraphqlClient {
GraphqlClient::new(self.settings.address.to_string())
}

pub fn graphql_client_with_token(&self, token: &str) -> GraphqlClient {
let mut graphql_client = self.graphql_client();
graphql_client.set_api_token(token.to_string());
graphql_client
}

pub fn logger(&self) -> Logger {
Logger::new(self.log_file.clone())
}
Expand Down

0 comments on commit c1bce3a

Please sign in to comment.