File: test_checkbuildd.py

package info (click to toggle)
reportbug 13.2.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,248 kB
  • sloc: python: 9,838; sh: 70; makefile: 41; lisp: 31
file content (16 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import unittest

import pytest

from reportbug import checkbuildd


class TestCheckbuildd(unittest.TestCase):
    @pytest.mark.network  # marking the test as using network
    def test_check_built(self):
        built = checkbuildd.check_built('gkrellm', 60)
        self.assertTrue(built)

        # check for a non-existing package, that triggers a failure
        built = checkbuildd.check_built('non-existing-pkg', 60)
        self.assertFalse(built)