Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd74da7

Browse files
author
Damien Robert
committedFeb 25, 2017
test_converter.p: add test_init_optional_parameters
Test that the optional parameters are taken into account.
1 parent 905da69 commit dd74da7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎tests/test_converter.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ def test_init():
1313
assert obj._file == file_
1414

1515

16+
def test_init_optional_parameters():
17+
"""test init."""
18+
file_ = mock.Mock()
19+
html_file_ = mock.Mock()
20+
folder_name_ = mock.Mock()
21+
from export_saved import Converter
22+
obj = Converter(file=file_, html_file=html_file_, folder_name=folder_name_)
23+
assert obj._file == file_
24+
assert obj._html_file == html_file_
25+
assert obj._folder_name == folder_name_
26+
27+
1628
@pytest.mark.parametrize(
1729
'urls_lists, exp_res',
1830
[

0 commit comments

Comments
 (0)
Please sign in to comment.