Skip to content

Commit

Permalink
Create parent directories in Git repo fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jul 1, 2020
1 parent 01754f2 commit 9adfc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darker/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def add(
for relative_path in paths_and_contents
}
for relative_path, content in paths_and_contents.items():
absolute_paths[relative_path].write(content)
absolute_paths[relative_path].write(content, ensure=True)
check_call(["git", "add", relative_path], cwd=self.root)
if commit:
check_call(["git", "commit", "-m", commit], cwd=self.root)
Expand Down

0 comments on commit 9adfc0b

Please sign in to comment.