mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
Move test_content_generator.py to test_builder/test_content_generator.py
This commit is contained in:
@@ -16,7 +16,7 @@ from mock import patch, Mock, call, mock_open
|
||||
import kobo.rpmlib
|
||||
|
||||
from tests import init_data
|
||||
from tests.test_views.test_views import FakeSCM
|
||||
from tests.test_web.test_views import FakeSCM
|
||||
|
||||
import koji
|
||||
|
||||
@@ -61,9 +61,10 @@ class TestBuild:
|
||||
# Necessary to restart the twisted reactor for the next test.
|
||||
import sys
|
||||
|
||||
del sys.modules["twisted.internet.reactor"]
|
||||
del sys.modules["moksha.hub.reactor"]
|
||||
del sys.modules["moksha.hub"]
|
||||
for mod in ("twisted.internet.reactor", "moksha.hub.reactor", "moksha.hub"):
|
||||
if mod in sys.modules:
|
||||
del sys.modules[mod]
|
||||
|
||||
import moksha.hub.reactor # noqa
|
||||
|
||||
try:
|
||||
Reference in New Issue
Block a user