use isolated filesystem for test
This commit is contained in:
parent
65a33aedf0
commit
67cc40b0d3
1 changed files with 15 additions and 14 deletions
|
|
@ -7,20 +7,21 @@ def test_get_rates_reads_input_correctly():
|
||||||
|
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
|
|
||||||
run_result = runner.invoke(
|
with runner.isolated_filesystem():
|
||||||
get_rates,
|
run_result = runner.invoke(
|
||||||
[
|
get_rates,
|
||||||
"--start-date",
|
[
|
||||||
"2024-01-01",
|
"--start-date",
|
||||||
"--end-date",
|
"2024-01-01",
|
||||||
"2024-01-02",
|
"--end-date",
|
||||||
"--currencies",
|
"2024-01-02",
|
||||||
"USD,GBP",
|
"--currencies",
|
||||||
"--output",
|
"USD,GBP",
|
||||||
"test_output.csv",
|
"--output",
|
||||||
"--dry-run",
|
"test_output.csv",
|
||||||
],
|
"--dry-run",
|
||||||
)
|
],
|
||||||
|
)
|
||||||
|
|
||||||
assert run_result.exit_code == 0
|
assert run_result.exit_code == 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue