Comment 3 for bug 1809983

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/627640
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a69ba853a78090d0e23be2dd5f8f2e5d4e564df4
Submitter: Zuul
Branch: master

commit a69ba853a78090d0e23be2dd5f8f2e5d4e564df4
Author: Akihiro Motoki <email address hidden>
Date: Sun Jan 6 15:05:43 2019 +0900

    UT: Run test_plugins as separate process

    This commit changes to run test_plugins in a separate process.

    test_plugins touches urlpatterns and Site registry during setUp(),
    but the cleanup process in tearDown does not recover urlpatterns correctly.
    After tests under test_plugins run, the urlpatterns continues to have
    entries of test panels and this leads to NoReverseMatch error when
    rendering other panels after that.

    I investigated details in setUp/tearDown of PluginTestCase but failed
    to find a good solution to recover urlpatterns and Horizon Site registry.
    As a workaround, runnig test_plugins in a separate process can avoid
    the issue.

    Closes-Bug: #1809983
    Change-Id: I848f6b341b3f93ed055955b2b12d2497811edc5a