| |
@@ -3,7 +3,7 @@
|
| |
"""
|
| |
|
| |
import logging
|
| |
- from unittest.mock import MagicMock
|
| |
+ from unittest.mock import MagicMock, patch
|
| |
|
| |
import koji
|
| |
import pytest
|
| |
@@ -129,7 +129,10 @@
|
| |
"principal": "principal",
|
| |
"keytab": "keytab",
|
| |
}
|
| |
- self.toddler_cls.process_block_retired(config, message)
|
| |
+ with patch.object(
|
| |
+ self.toddler_cls, "get_rawhide_tag", MagicMock(return_value="f41")
|
| |
+ ):
|
| |
+ self.toddler_cls.process_block_retired(config, message)
|
| |
self.toddler_cls.koji_session.packageListBlock.assert_called_once_with(
|
| |
taginfo="f41",
|
| |
pkginfo="example-repo",
|
| |
Without this, the test depends on the current rawhide version retrieved from Bodhi.