feat: add git pull subcommand
Some checks failed
checks / tests-10 (push) Failing after 2m56s
checks / pre-commit (push) Successful in 4m28s
checks / tests-11 (push) Failing after 4m8s
checks / tests-12 (push) Failing after 2m47s

This commit is contained in:
cătălin 2024-09-06 20:51:03 +02:00
commit 9dd2405c47
No known key found for this signature in database
10 changed files with 101 additions and 15 deletions

View file

@ -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()