Skip to content

Commit

Permalink
Merge pull request #56 from frenzymadness/fix_test_get_repo
Browse files Browse the repository at this point in the history
Fix test_get_repo
  • Loading branch information
murilo-cunha authored Nov 8, 2022
2 parents 512bfd9 + ae6b08e commit a0cb049
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_git_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def init_repo_diff(
return git_repo


def test_get_repo() -> None:
def test_get_repo(tmp_path: Path) -> None:
"""Find git repository."""
curr_dir = Path(__file__).parent
repo = get_repo(curr_dir)
Repo.init(tmp_path)
repo = get_repo(tmp_path)
assert repo.working_dir is not None
assert isinstance(repo, Repo)
assert Path(repo.working_dir).stem == "databooks"
assert Path(repo.working_dir).stem == "test_get_repo0"


def test_get_repo_missing(tmp_path: Path) -> None:
Expand Down

0 comments on commit a0cb049

Please sign in to comment.