Conditions | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """test_read_user_variable.""" |
||
10 | def test_click_invocation(mocker): |
||
11 | """Test click function called correctly by cookiecutter. |
||
12 | |||
13 | Test for string type invocation. |
||
14 | """ |
||
15 | prompt = mocker.patch('click.prompt') |
||
16 | prompt.return_value = DEFAULT |
||
17 | |||
18 | assert read_user_variable(VARIABLE, DEFAULT) == DEFAULT |
||
19 | |||
20 | click.prompt.assert_called_once_with(VARIABLE, default=DEFAULT) |
||
21 |