split tests into multiple files
This commit is contained in:
parent
014a90048f
commit
b011363524
5 changed files with 544 additions and 535 deletions
7
tests/common/mod.rs
Normal file
7
tests/common/mod.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use forgejo_api::Forgejo;
|
||||
|
||||
pub fn get_api() -> Forgejo {
|
||||
let url = url::Url::parse(&std::env::var("FORGEJO_API_CI_INSTANCE_URL").unwrap()).unwrap();
|
||||
let token = std::env::var("FORGEJO_API_CI_TOKEN").unwrap();
|
||||
Forgejo::new(forgejo_api::Auth::Token(&token), url).unwrap()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue