| Conditions | 2 |
| Total Lines | 11 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from yfrake.client.validators import validate_request |
||
| 16 | def test_invalid_param(): |
||
| 17 | args = dict( |
||
| 18 | symbol='msft', |
||
| 19 | startDate=1000, |
||
| 20 | endDate=2000, |
||
| 21 | events=True, |
||
| 22 | extHours=False, |
||
| 23 | INVALID_KEY=bool() |
||
| 24 | ) |
||
| 25 | with pytest.raises(KeyError): |
||
| 26 | validate_request('historical_prices', args) |
||
| 27 | |||
| 39 |