sources: skip librepo test if no librepo can be imported
The librepo test has a similar issue as the dnf tests, we need to use the system packages, c.f. https://github.com/osbuild/containers/pull/79
This commit is contained in:
parent
460d743b99
commit
b97274dd2f
1 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,11 @@
|
|||
#!/usr/bin/python3
|
||||
from unittest.mock import patch
|
||||
|
||||
import librepo
|
||||
try:
|
||||
import librepo
|
||||
except ImportError:
|
||||
import pytest
|
||||
pytest.skip("need librepo to run this test", allow_module_level=True)
|
||||
import pytest
|
||||
|
||||
from osbuild import testutil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue