mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Switch to unittest
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
055786a6a0
commit
406f61e688
1 changed files with 19 additions and 16 deletions
|
@ -1,22 +1,25 @@
|
||||||
import pytest
|
import unittest
|
||||||
from slpkg.binary.search import search_pkg
|
from slpkg.binary.search import search_pkg
|
||||||
from slpkg.sbo.search import sbo_search_pkg
|
from slpkg.sbo.search import sbo_search_pkg
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip(reason="no way of currently testing in Gitlab")
|
class TestFindPkg(unittest.TestCase):
|
||||||
def test_search():
|
|
||||||
|
def test_search(self):
|
||||||
"""Testing found the name from binaries repos
|
"""Testing found the name from binaries repos
|
||||||
"""
|
"""
|
||||||
name = "vlc"
|
name = "vlc"
|
||||||
repo = "alien"
|
repo = "alien"
|
||||||
test = search_pkg(name, repo)
|
test = search_pkg(name, repo)
|
||||||
assert name == test
|
self.assertEqual(name, test)
|
||||||
|
|
||||||
|
def test_sbo_search(self):
|
||||||
@pytest.mark.skip(reason="no way of currently testing in Gtilab")
|
|
||||||
def test_sbo_search():
|
|
||||||
"""Testing found the name from binaries repos
|
"""Testing found the name from binaries repos
|
||||||
"""
|
"""
|
||||||
name = "slpkg"
|
name = "slpkg"
|
||||||
test = sbo_search_pkg(name).split("/")[-2]
|
test = sbo_search_pkg(name).split("/")[-2]
|
||||||
assert name == test
|
self.assertEqual(name, test)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
unittest.main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue