We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed86463 commit 59fc14aCopy full SHA for 59fc14a
1 file changed
tests/plugins/test_plugin_beronet.py
@@ -78,7 +78,8 @@ def test_outgoing_cdr(requests_mock, mock_plugin: beronet.BeroNet, disable_sleep
78
assert record.duration # Assert that we have a duration
79
80
81
-def test_wrong_status_code_no_error(requests_mock, mock_plugin: beronet.BeroNet, disable_sleep):
+@pytest.mark.parametrize("status_code", [204, 400, 500])
82
+def test_wrong_status_code_no_error(requests_mock, mock_plugin: beronet.BeroNet, disable_sleep, status_code):
83
"""Test that the wrong status error gets caught and not cause an error."""
- requests_mock.get(mock_plugin.api_url, status_code=400)
84
+ requests_mock.get(mock_plugin.api_url, status_code=status_code)
85
assert mock_plugin.run() # This should return True if error was caught
0 commit comments