feat: add git pull subcommand
This commit is contained in:
parent
4746e3b3b1
commit
9dd2405c47
10 changed files with 101 additions and 15 deletions
|
|
@ -8,7 +8,7 @@ from halig.settings import Settings
|
|||
|
||||
@pytest.fixture
|
||||
def command(settings: Settings):
|
||||
return GitCommitCommand(settings)
|
||||
return GitCommitCommand(settings=settings)
|
||||
|
||||
|
||||
def test_repo_is_not_initialized(settings):
|
||||
|
|
@ -16,7 +16,7 @@ def test_repo_is_not_initialized(settings):
|
|||
initializes the repo upon instantiation"""
|
||||
|
||||
assert not (settings.notebooks_root_path / ".git").is_dir()
|
||||
GitCommitCommand(settings)
|
||||
GitCommitCommand(settings=settings)
|
||||
assert (settings.notebooks_root_path / ".git").is_dir()
|
||||
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ def test_repo_is_initialized(settings):
|
|||
p = subprocess.Popen(["git", "init"], cwd=settings.notebooks_root_path)
|
||||
p.wait()
|
||||
assert (settings.notebooks_root_path / ".git").is_dir()
|
||||
GitCommitCommand(settings)
|
||||
GitCommitCommand(settings=settings)
|
||||
assert (settings.notebooks_root_path / ".git").is_dir()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue