1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub mod auth;
pub mod pay;

#[cfg(test)]
mod tests {
    use std::sync::Mutex;

    use mockito::Server;
    use once_cell::sync::Lazy;

    pub(crate) static MOCK_HTTP_SERVER: Lazy<Mutex<Server>> = Lazy::new(|| {
        let opts = mockito::ServerOpts {
            host: "127.0.0.1",
            port: 8080,
            ..Default::default()
        };
        let server = Server::new_with_opts(opts);
        Mutex::new(server)
    });
}