File: test_related.py

package info (click to toggle)
osinfo-db 0.20221130-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,780 kB
  • sloc: python: 1,672; sh: 344; makefile: 89
file content (17 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# This work is licensed under the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.

from . import util


@util.os_parametrize("osxml", filter_related=True)
def test_related(osxml):
    related = util.DataFiles.getosxml_related(osxml)
    upgrades = osxml.upgrades
    if upgrades:
        found = util.DataFiles.getosxml_by_id(upgrades)
        assert found
        related.append(found)

    for os in related:
        assert os is not osxml