Skip to content

Commit

Permalink
work around broken savannah
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Jun 11, 2024
1 parent 287df2d commit adf2389
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_savanna.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import subprocess
import urllib.error
import urllib.request

import conftest
import pytest

from nix_update.options import Options
from nix_update.update import update


def test_update(helpers: conftest.Helpers) -> None:
try:
response = urllib.request.urlopen(
"https://download.savannah.nongnu.org/releases/fileschanged/?C=M&O=D",
timeout=5,
)
response.read()
except Exception:
# savannah's api seems to have issues lately
pytest.xfail("Savana is taking too long to respond")

with helpers.testpkgs() as path:
opts = Options(attribute="savanna", import_path=str(path))
update(opts)
Expand Down

0 comments on commit adf2389

Please sign in to comment.