1
0
Fork 0

split tests into multiple files

This commit is contained in:
Cyborus 2024-05-14 12:09:35 -04:00
parent 014a90048f
commit b011363524
No known key found for this signature in database
5 changed files with 544 additions and 535 deletions

7
tests/common/mod.rs Normal file
View 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()
}