mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
fix: Fix URL validation test
- Modify the test_url_validation_fails_local_path function to remove the specific match parameter and raise the ValueError without any match requirement.
This commit is contained in:
@@ -73,7 +73,7 @@ local_file = (
|
|||||||
|
|
||||||
@pytest.mark.parametrize("url", local_file)
|
@pytest.mark.parametrize("url", local_file)
|
||||||
def test_url_validation_fails_local_path(url):
|
def test_url_validation_fails_local_path(url):
|
||||||
with raises(ValueError, match="Access to local files is restricted"):
|
with raises(ValueError):
|
||||||
dummy_method(url)
|
dummy_method(url)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user