Compare commits

..

2 commits

Author SHA1 Message Date
df8ebc6af7 refactor(server): collapse type module into gitforge module
Some checks failed
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Rust / build (push) Has been cancelled
2024-05-21 19:47:01 +01:00
341dc97a51 refactor(git): add mock repository and tests
All checks were successful
Rust / build (push) Successful in 1m7s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Repository is now behind an enum to allow selection of a mock Repsitory
for use in tests.
2024-05-21 19:47:01 +01:00

View file

@ -27,6 +27,7 @@ mod fetch {
use git_next_config::GitDir; use git_next_config::GitDir;
#[test] #[test]
#[ignore] // requires authentication to the server
fn should_fetch_from_repo() { fn should_fetch_from_repo() {
// uses the current repo and fetches from the remote server // uses the current repo and fetches from the remote server
let_assert!(Ok(cwd) = std::env::current_dir()); let_assert!(Ok(cwd) = std::env::current_dir());