11use crate :: {
22 config:: Config ,
3- custom_github_api:: { get_user_access_token_request, ATResp } ,
4- db:: get_login_user,
5- utils:: gen_rand_string,
3+ // custom_github_api::{get_user_access_token_request, ATResp},
4+ // db::get_login_user,
5+ // utils::gen_rand_string,
66} ;
77pub mod endpoint_test_client;
88mod parse_request;
99
1010use std:: {
1111 cell:: LazyCell ,
12- collections:: HashMap ,
12+ // collections::HashMap,
1313 future:: Future ,
1414 path:: PathBuf ,
1515 sync:: Arc ,
16- time:: { Duration , SystemTime } ,
16+ time:: {
17+ // Duration,
18+ SystemTime ,
19+ } ,
1720} ;
1821
1922use crate :: error:: Error as CrateError ;
2023use assert_json_diff:: assert_json_include;
21- use axum_test:: { TestResponse , TestServer , WsMessage } ;
24+ use axum_test:: {
25+ TestResponse ,
26+ TestServer ,
27+ // WsMessage
28+ } ;
2229use backtrace:: Backtrace ;
2330use deadpool_diesel:: postgres:: Pool ;
2431use derive_more:: derive:: AsRef ;
@@ -27,27 +34,24 @@ use diesel_test::{
2734 postgres:: { ParsingDbUrlError , PostgresDbUrlFactory } ,
2835 DieselTestConfig ,
2936} ;
30- use endpoint_test_client:: PostEndpointTestClient ;
31- use github_api:: models:: { PrivateUser , UsersGetAuthenticated200Response } ;
32- use github_webhook_body:: WebhookBody ;
37+ // use endpoint_test_client::PostEndpointTestClient;
38+ // use github_api::models::{PrivateUser, UsersGetAuthenticated200Response};
39+ // use github_webhook_body::WebhookBody;
3340use http:: StatusCode ;
3441use parking_lot:: Mutex ;
3542use parse_request:: ParsedHttpRequest ;
3643use serde_json:: Value ;
37- use shared:: github_api_trait:: GithubApi ;
44+ // use shared::github_api_trait::GithubApi;
3845use shared:: {
39- endpoints:: defns:: api:: {
40- auth:: {
41- finish:: { AuthFinishEndpoint , AuthFinishPayload , GithubAccessToken } ,
42- initiate:: AuthInitiateEndpoint ,
43- } ,
44- websocket_updates:: { ServerMsg , WEBSOCKET_UPDATES_ENDPOINT } ,
45- } ,
46+ // endpoints::defns::api::websocket_updates::{ServerMsg, WEBSOCKET_UPDATES_ENDPOINT},
4647 types:: { installation:: InstallationId , user:: UserId } ,
4748} ;
4849use tracing_subscriber:: { layer:: SubscriberExt , util:: SubscriberInitExt , EnvFilter } ;
49- use url:: Url ;
50- use wiremock:: { MockServer , ResponseTemplate } ;
50+ // use url::Url;
51+ use wiremock:: {
52+ MockServer ,
53+ // ResponseTemplate
54+ } ;
5155
5256use crate :: {
5357 config:: init_config,
@@ -120,8 +124,6 @@ struct TestSetup {
120124 server : TestServer ,
121125 #[ as_ref]
122126 config : Config ,
123- github_api_mock_server : MockServer ,
124- github_non_api_mock_server : MockServer ,
125127}
126128
127129async fn with_test_server < Fut : Future > (
@@ -164,8 +166,6 @@ async fn with_test_server<Fut: Future>(
164166 pool,
165167 server,
166168 config,
167- github_api_mock_server,
168- github_non_api_mock_server,
169169 } ;
170170
171171 Ok :: < Fut :: Output , TestError > ( func ( test_setup) . await )
0 commit comments