Exemple #1
0
def pytest_configure():
    """return dict of name->object to be made globally available in
    the pytest configure.  This hook is called at plugin registration
    time.
    Object is accessible only via dotted notation `item.key.nested_key`

    Exposes the list of all WONTFIX bugs and a mapping between decorated
    functions and Bug IDS (populated by decorator).
    """
    log("Registering custom pytest_configure")
    pytest.bugzilla = NestedDict({
        'removal_ids': get_deselect_bug_ids(log=log),
        'decorated_functions': []
    })
Exemple #2
0
def pytest_namespace():
    """return dict of name->object to be made globally available in
    the pytest namespace.  This hook is called at plugin registration
    time.
    Object is accessible only via dotted notation `item.key.nested_key`

    Exposes the list of all WONTFIX bugs and a mapping between decorated
    functions and Bug IDS (populated by decorator).
    """
    log("Registering custom pytest_namespace")
    return {
        'bugzilla': {
            'removal_ids': get_deselect_bug_ids(log=log),
            'decorated_functions': []
        }
    }
 def test_get_unflagged_bugs(self):
     """Test if unflagged are deselected"""
     self.assertIn('1237', get_deselect_bug_ids(BZ_DATA, lookup=True))
 def test_get_wontfix_bugs(self):
     """Test if wontfixes are filtered"""
     self.assertNotIn('1236', get_deselect_bug_ids(BZ_DATA, lookup=True))
     self.assertIn('1234', get_deselect_bug_ids(BZ_DATA, lookup=True))
     self.assertIn('1235', get_deselect_bug_ids(BZ_DATA, lookup=True))
Exemple #5
0
 def test_get_wontfix_bugs(self):
     """Test if wontfixes are filtered"""
     self.assertNotIn('1236', get_deselect_bug_ids(self.bz_data))