Skip to content

Commit

Permalink
swap invalid urls that are used in testing. (takes care of deprecatio…
Browse files Browse the repository at this point in the history
…n warning in #2776)

Signed-off-by: NicholasTanz <[email protected]>
  • Loading branch information
NicholasTanz committed Feb 12, 2025
1 parent d67f126 commit 6318760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_fetcher_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_fetch_in_chunks(self) -> None:
# Incorrect URL parsing
def test_url_parsing(self) -> None:
with self.assertRaises(exceptions.DownloadError):
self.fetcher.fetch("missing-scheme-and-hostname-in-url")
self.fetcher.fetch("http://invalid/")

# File not found error
def test_http_error(self) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_updater_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def test_persist_metadata_fails(
def test_invalid_target_base_url(self) -> None:
info = TargetFile(1, {"sha256": ""}, "targetpath")
with self.assertRaises(exceptions.DownloadError):
self.updater.download_target(info, target_base_url="invalid_url")
self.updater.download_target(info, target_base_url="http://invalid/")

def test_non_existing_target_file(self) -> None:
info = TargetFile(1, {"sha256": ""}, "/non_existing_file.txt")
Expand Down

0 comments on commit 6318760

Please sign in to comment.