generated from opensafely-core/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import contextlib | ||
|
||
|
||
def test_dump_example_data(call_cli, tmpdir): | ||
with contextlib.chdir(tmpdir): | ||
def test_dump_example_data(call_cli, tmp_path): | ||
with contextlib.chdir(tmp_path): | ||
call_cli("dump-example-data") | ||
filenames = [path.basename for path in (tmpdir / "example-data").listdir()] | ||
filenames = [path.name for path in (tmp_path / "example-data").iterdir()] | ||
assert "patients.csv" in filenames |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters