element wise assert
This commit is contained in:
parent
4f81ac2e62
commit
1d8ae65fd8
1 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import datetime
|
import datetime
|
||||||
|
import pathlib
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from currencies import Currency
|
from currencies import Currency
|
||||||
|
|
@ -25,7 +26,9 @@ def test_handle_input_rates_works_with_full_correct_inputs():
|
||||||
"dry_run": False,
|
"dry_run": False,
|
||||||
"output": pathlib.Path("test_output.csv"),
|
"output": pathlib.Path("test_output.csv"),
|
||||||
}
|
}
|
||||||
assert handled_inputs == expected_result
|
|
||||||
|
for item in expected_result.items():
|
||||||
|
assert handled_inputs[item] == expected_result[item]
|
||||||
|
|
||||||
|
|
||||||
def test_handle_input_rates_raises_with_bad_currency_code():
|
def test_handle_input_rates_raises_with_bad_currency_code():
|
||||||
|
|
@ -91,4 +94,6 @@ def test_handle_input_rates_start_and_end_date_equal_works_fine():
|
||||||
"dry_run": False,
|
"dry_run": False,
|
||||||
"output": "test_output.csv",
|
"output": "test_output.csv",
|
||||||
}
|
}
|
||||||
assert handled_inputs == expected_result
|
|
||||||
|
for item in expected_result.items():
|
||||||
|
assert handled_inputs[item] == expected_result[item]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue