Skip to content

Commit 75de5b2

Browse files
committed
Add integration test for remote
1 parent 477165c commit 75de5b2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from repo_smith.initialize_repo import initialize_repo
2+
3+
4+
def test_remote_step_valid():
5+
ir = initialize_repo("tests/specs/remote_step/remote_step_valid.yml")
6+
with ir.initialize() as r:
7+
assert len(r.remotes) == 1
8+
assert r.remotes[0].name == "upstream"
9+
assert r.remotes[0].url == "https://github.com/git-mastery/repo-smith.git"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
initialization:
2+
steps:
3+
- type: commit
4+
empty: true
5+
message: Empty
6+
- type: remote
7+
remote-name: upstream
8+
remote-url: https://github.com/git-mastery/repo-smith.git

0 commit comments

Comments
 (0)